Max 5 API Reference

Binary Module
[Jitter]

Collaboration diagram for Binary Module:

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.

Function Documentation

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.

Parameters:
fh t_filehandle file handle
ckid chunk ID (ie JIT_BIN_CHUNK_CONTAINER, JIT_BIN_CHUNK_MATRIX)
cksize the size of the chunk
Returns:
t_jit_err error code.

Definition at line 88 of file jit.bin.c.

References sysfile_read(), and sysfile_setpos().

Here is the call graph for this function:

t_jit_err jit_bin_read_header ( t_filehandle  fh,
ulong version,
long *  filesize 
)

Reads the header of a JXF binary file.

Parameters:
fh t_filehandle file handle
version version of the binary file format (ie JIT_BIN_VERSION_1)
filesize the size of the file
Returns:
t_jit_err error code.

Definition at line 40 of file jit.bin.c.

References sysfile_read(), and sysfile_setpos().

Here is the call graph for this function:

t_jit_err jit_bin_read_matrix ( t_filehandle  fh,
void *  matrix 
)

Reads matrix data from a JXF binary file.

Parameters:
fh t_filehandle file handle
matrix the matrix data
Returns:
t_jit_err error code.

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.

Here is the call graph for this function:

t_jit_err jit_bin_write_header ( t_filehandle  fh,
long  filesize 
)

Writes the header of a JXF binary file.

Parameters:
fh t_filehandle file handle
filesize the size of the file
Returns:
t_jit_err error code.

Definition at line 122 of file jit.bin.c.

References sysfile_setpos(), and sysfile_write().

Here is the call graph for this function:

t_jit_err jit_bin_write_matrix ( t_filehandle  fh,
void *  matrix 
)

Writes a matrix to a JXF binary file.

Parameters:
fh t_filehandle file handle
matrix the matrix data
Returns:
t_jit_err error code.

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.

Here is the call graph for this function:

Copyright © 2008, Cycling '74