Max API
8.0.2
|
Functions | |
void * | jit_getbytes (long size) |
Allocates a pointer to memory. More... | |
void | jit_freebytes (void *ptr, long size) |
Frees a pointer to memory. More... | |
void ** | jit_handle_new (long size) |
Allocates a memory handle. More... | |
void | jit_handle_free (void **handle) |
Frees a memory handle. More... | |
long | jit_handle_size_get (void **handle) |
Retrieves a memory handle's size in bytes. More... | |
t_jit_err | jit_handle_size_set (void **handle, long size) |
Sets a memory handle's size in bytes. More... | |
long | jit_handle_lock (void **handle, long lock) |
Sets a memory handle's lock state. More... | |
void | jit_copy_bytes (void *dest, const void *src, long bytes) |
Copy bytes from source to destination pointer. More... | |
long | jit_freemem (void) |
Reports free memory. More... | |
char * | jit_newptr (long size) |
Allocates a pointer to memory. More... | |
void | jit_disposeptr (char *ptr) |
Frees a pointer to memory. More... | |
void jit_copy_bytes | ( | void * | dest, |
const void * | src, | ||
long | bytes | ||
) |
Copy bytes from source to destination pointer.
dest | destination pointer |
src | source pointer |
bytes | byte count to copy |
References sysmem_copyptr().
void jit_disposeptr | ( | char * | ptr | ) |
Frees a pointer to memory.
ptr | pointer to memory |
References sysmem_freeptr().
void jit_freebytes | ( | void * | ptr, |
long | size | ||
) |
Frees a pointer to memory.
Depending on the size of the pointer, jit_freebytes will free from either the faster memory pool or the system memory pool.
ptr | pointer to memory |
size | size in bytes allocated |
References sysmem_freeptr().
Referenced by jit_matrix_freedata(), and max_jit_obex_free().
long jit_freemem | ( | void | ) |
Reports free memory.
void* jit_getbytes | ( | long | size | ) |
Allocates a pointer to memory.
Depending on the size requested, jit_getbytes will allocate from either the faster memory pool or the system memory pool.
size | size in bytes to allocate |
References sysmem_newptr().
Referenced by jit_matrix_getcell(), max_jit_classex_setup(), and max_jit_obex_new().
void jit_handle_free | ( | void ** | handle | ) |
Frees a memory handle.
handle | memory handle |
References sysmem_freehandle().
Referenced by jit_matrix_free().
long jit_handle_lock | ( | void ** | handle, |
long | lock | ||
) |
Sets a memory handle's lock state.
handle | memory handle |
lock | state (1=locked, 0=unlocked) |
References sysmem_lockhandle().
void** jit_handle_new | ( | long | size | ) |
Allocates a memory handle.
Handles are relocatable sections of memory which should be locked before dereferencing, and unlocked when not in use so that they may be relocated as necessary.
size | size in bytes to allocate |
References sysmem_newhandle().
long jit_handle_size_get | ( | void ** | handle | ) |
Retrieves a memory handle's size in bytes.
handle | memory handle |
References sysmem_handlesize().
t_jit_err jit_handle_size_set | ( | void ** | handle, |
long | size | ||
) |
Sets a memory handle's size in bytes.
handle | memory handle |
size | new size in bytes |
References sysmem_resizehandle().
char* jit_newptr | ( | long | size | ) |
Allocates a pointer to memory.
Always allocates from the the system memory pool.
size | size in bytes to allocate |
References sysmem_newptr().