Max 5 API Reference
![]() |
Functions | |
t_jit_err | jit_bin_read_header (t_filehandle fh, ulong *version, long *filesize) |
Reads the header of a JXF binary file. | |
t_jit_err | jit_bin_read_chunk_info (t_filehandle fh, ulong *ckid, long *cksize) |
Reads the the info of a chunk from a JXF binary file. | |
t_jit_err | jit_bin_write_header (t_filehandle fh, long filesize) |
Writes the header of a JXF binary file. | |
t_jit_err | jit_bin_read_matrix (t_filehandle fh, void *matrix) |
Reads matrix data from a JXF binary file. | |
t_jit_err | jit_bin_write_matrix (t_filehandle fh, void *matrix) |
Writes a matrix to a JXF binary file. |
t_jit_err jit_bin_read_chunk_info | ( | t_filehandle | fh, | |
ulong * | ckid, | |||
long * | cksize | |||
) |
Reads the the info of a chunk from a JXF binary file.
fh | t_filehandle file handle | |
ckid | chunk ID (ie JIT_BIN_CHUNK_CONTAINER, JIT_BIN_CHUNK_MATRIX) | |
cksize | the size of the chunk |
Definition at line 88 of file jit.bin.c.
References sysfile_read(), and sysfile_setpos().
t_jit_err jit_bin_read_header | ( | t_filehandle | fh, | |
ulong * | version, | |||
long * | filesize | |||
) |
Reads the header of a JXF binary file.
fh | t_filehandle file handle | |
version | version of the binary file format (ie JIT_BIN_VERSION_1) | |
filesize | the size of the file |
Definition at line 40 of file jit.bin.c.
References sysfile_read(), and sysfile_setpos().
t_jit_err jit_bin_read_matrix | ( | t_filehandle | fh, | |
void * | matrix | |||
) |
Reads matrix data from a JXF binary file.
fh | t_filehandle file handle | |
matrix | the matrix data |
Definition at line 157 of file jit.bin.c.
References t_jit_matrix_info::dim, t_jit_matrix_info::dimcount, t_jit_matrix_info::flags, gensym(), JIT_MATRIX_MAX_DIMCOUNT, jit_object_method(), t_jit_matrix_info::planecount, sysfile_read(), and t_jit_matrix_info::type.
t_jit_err jit_bin_write_header | ( | t_filehandle | fh, | |
long | filesize | |||
) |
Writes the header of a JXF binary file.
fh | t_filehandle file handle | |
filesize | the size of the file |
Definition at line 122 of file jit.bin.c.
References sysfile_setpos(), and sysfile_write().
t_jit_err jit_bin_write_matrix | ( | t_filehandle | fh, | |
void * | matrix | |||
) |
Writes a matrix to a JXF binary file.
fh | t_filehandle file handle | |
matrix | the matrix data |
Definition at line 428 of file jit.bin.c.
References t_jit_matrix_info::dim, t_jit_matrix_info::dimcount, gensym(), JIT_MATRIX_MAX_DIMCOUNT, jit_object_method(), t_jit_matrix_info::planecount, sysfile_write(), and t_jit_matrix_info::type.