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.
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.
t_jit_err jit_bin_write_header (t_filehandle fh, t_int32 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,
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.
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.
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.
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.
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.