Max 5 API Reference
|
Functions | |
| void * | jit_getbytes (long size) |
| Allocates a pointer to memory. | |
| void | jit_freebytes (void *ptr, long size) |
| Frees a pointer to memory. | |
| void ** | jit_handle_new (long size) |
| Allocates a memory handle. | |
| void | jit_handle_free (void **handle) |
| Frees a memory handle. | |
| long | jit_handle_size_get (void **handle) |
| Retrieves a memory handle's size in bytes. | |
| t_jit_err | jit_handle_size_set (void **handle, long size) |
| Sets a memory handle's size in bytes. | |
| long | jit_handle_lock (void **handle, long lock) |
| Sets a memory handle's lock state. | |
| void | jit_copy_bytes (void *dest, const void *src, long bytes) |
| Copy bytes from source to destination pointer. | |
| long | jit_freemem (void) |
| Reports free memory. | |
| char * | jit_newptr (long size) |
| Allocates a pointer to memory. | |
| void | jit_disposeptr (char *ptr) |
| Frees a pointer to memory. | |
| 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 |
Definition at line 301 of file jit.memory.c.
| void jit_disposeptr | ( | char * | ptr | ) |
Frees a pointer to memory.
| ptr | pointer to memory |
Definition at line 357 of file jit.memory.c.
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 |
Definition at line 146 of file jit.memory.c.
References sysmem_freeptr().
Referenced by jit_glchunk_delete(), jit_matrix_freedata(), jit_ob3d_free(), and max_jit_obex_free().

| long jit_freemem | ( | void | ) |
Reports free memory.
Definition at line 316 of file jit.memory.c.
| 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 |
Definition at line 119 of file jit.memory.c.
References sysmem_newptr().
Referenced by jit_glchunk_copy(), jit_glchunk_grid_new(), jit_glchunk_new(), jit_matrix_getcell(), jit_ob3d_new(), jit_ob3d_setup(), jit_qt_codec_getcodeclist_audio(), jit_qt_codec_getcodeclist_gfx(), jit_qt_codec_getcodeclist_video(), max_jit_classex_setup(), and max_jit_obex_new().

| void jit_handle_free | ( | void ** | handle | ) |
Frees a memory handle.
| handle | memory handle |
Definition at line 209 of file jit.memory.c.
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) |
Definition at line 282 of file jit.memory.c.
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 |
Definition at line 171 of file jit.memory.c.
References sysmem_newhandle().

| long jit_handle_size_get | ( | void ** | handle | ) |
Retrieves a memory handle's size in bytes.
| handle | memory handle |
Definition at line 231 of file jit.memory.c.
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 |
Definition at line 255 of file jit.memory.c.
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 |
Definition at line 336 of file jit.memory.c.
References sysmem_newptr().
