Binary Module
+ Collaboration diagram for Binary Module:

Functions

t_jit_err jit_bin_read_header (t_filehandle fh, t_uint32 *version, t_int32 *filesize)
 Reads the header of a JXF binary file. More...
 
t_jit_err jit_bin_read_chunk_info (t_filehandle fh, t_uint32 *ckid, t_int32 *cksize)
 Reads the the info of a chunk from a JXF binary file. More...
 
t_jit_err jit_bin_write_header (t_filehandle fh, t_int32 filesize)
 Writes the header of a JXF binary file. More...
 
t_jit_err jit_bin_read_matrix (t_filehandle fh, void *matrix)
 Reads matrix data from a JXF binary file. More...
 
t_jit_err jit_bin_write_matrix (t_filehandle fh, void *matrix)
 Writes a matrix to a JXF binary file. More...
 

Detailed Description

Function Documentation

t_jit_err jit_bin_read_chunk_info ( t_filehandle  fh,
t_uint32 ckid,
t_int32 cksize 
)

Reads the the info of a chunk from a JXF binary file.

Parameters
fht_filehandle file handle
ckidchunk ID (ie JIT_BIN_CHUNK_CONTAINER, JIT_BIN_CHUNK_MATRIX)
cksizethe size of the chunk
Returns
t_jit_err error code.

References SYSFILE_FROMMARK, sysfile_read(), and sysfile_setpos().

+ Here is the call graph for this function:

t_jit_err jit_bin_read_header ( t_filehandle  fh,
t_uint32 version,
t_int32 filesize 
)

Reads the header of a JXF binary file.

Parameters
fht_filehandle file handle
versionversion of the binary file format (ie JIT_BIN_VERSION_1)
filesizethe size of the file
Returns
t_jit_err error code.

References SYSFILE_FROMSTART, 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
fht_filehandle file handle
matrixthe matrix data
Returns
t_jit_err error code.

References _jit_sym_char, _jit_sym_float32, _jit_sym_float64, _jit_sym_getdata, _jit_sym_getinfo, _jit_sym_lock, _jit_sym_long, _jit_sym_setinfo, t_jit_matrix_info::dim, t_jit_matrix_info::dimcount, t_jit_matrix_info::flags, gensym(), JIT_MATRIX_MAX_DIMCOUNT, 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,
t_int32  filesize 
)

Writes the header of a JXF binary file.

Parameters
fht_filehandle file handle
filesizethe size of the file
Returns
t_jit_err error code.

References SYSFILE_FROMSTART, 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
fht_filehandle file handle
matrixthe matrix data
Returns
t_jit_err error code.

References _jit_sym_char, _jit_sym_float32, _jit_sym_float64, _jit_sym_long, t_jit_matrix_info::dim, t_jit_matrix_info::dimcount, gensym(), JIT_MATRIX_MAX_DIMCOUNT, t_jit_matrix_info::planecount, sysfile_write(), and t_jit_matrix_info::type.

+ Here is the call graph for this function:

  Copyright © 2015, Cycling '74