Japanese
PROGRAMMER'S GUIDECompression/decompression library
BackForward
compression/decompression library

2. reference


2.1 Data specifications

The following table shows the basic types used in this library.

Table 2.1 Basic types
 Model name
 explanation
 Uint8
 An unsigned 1-byte integer.
 Sint8
 Signed 1-byte integer.
 Uint16
 An unsigned 2-byte integer.
 Sint16
 Signed 2-byte integer.
 Uint32
 An unsigned 4-byte integer.
 Sint32
 Signed 4-byte integer.
 Bool
 Logical type. Takes the following values.
FALSE
TRUE

The following table shows the constant macros defined in this library.

Table 2.2 Constant macros
 macro name
 value
 explanation
 CMP_DEC_OK
 0
 Decompression function return value. normal termination.
 CMP_DEC_STOP
 1
 Decompression function return value. normal termination. Decompression processing interrupted.
 CMP_DEC_ERR
 -1
 Decompression function return value. abnormal termination. Input data error.
 CMP_DEC_ERR_H_ALGO
 -2
 Decompression function return value. abnormal termination. Unsupported algorithm.
 CMP_DEC_ERR_H_UNIT
 -3
 Decompression function return value. abnormal termination. Unsupported processing unit.


BackForward
PROGRAMMER'S GUIDECompression/decompression library
Copyright SEGA ENTERPRISES, LTD., 1997