nn::cx Namespace

Description

The namespace of the data compression and decompression library.

Structures

nn::cx::UncompContextRL The context for decompressing run-length compressed data.
nn::cx::UncompContextLZ The context for decompressing LZ77 compressed data.
nn::cx::UncompContextHuffman The context for decompressing Huffman compressed data.
nn::cx::UncompContextLH The context for decompressing LZ-Huffman compressed data.
nn::cx::UncompContextLRC The context for decompressing LZ-Range Coder compressed data.
nn::cx::UncompContextDeflate The context for the deflate compression data streaming expansion appended to the cx common header.

Enumerated Types

ErrorCode Enumerated type representing the error codes.
CompressionType Enumerated type representing compression types.

typedef Definitions

UncompContextGzip Context for deflate compression data streaming decompression for the gzip format.
UncompContextZlib Context for deflate compression data streaming decompression for the zlib format.

Constants

Compression
LZ_COMPRESS_WORK_SIZE const int This is the size of the temporary buffer for compression with nn::cx::CompressLZ.
HUFFMAN_COMPRESS_WORK_SIZE const int This is the size of the temporary buffer for compression with nn::cx::CompressHuffman.
DEFLATE_COMPRESS_WORK_SIZE const int The size of the work buffer needed for CompressDeflate.
GZIP_COMPRESS_WORK_SIZE const int The size of the work buffer needed for CompressGzip.
ZLIB_COMPRESS_WORK_SIZE const int The size of the work buffer needed for CompressZlib.
Uncompression
UNCOMPRESS_LH_WORK_SIZE const int This is the size of the temporary buffer for uncompression with nn::cx::UncompressLH.
UNCOMPRESS_LRC_WORK_SIZE const int This is the size of the temporary buffer for uncompression with nn::cx::UncompressLRC.
UNCOMPRESS_DEFLATE_WORK_SIZE const int The size of the work buffer needed for UncompressDeflate.
UNCOMPRESS_GZIP_WORK_SIZE const int The size of the work buffer needed for UncompressGzip.
UNCOMPRESS_ZLIB_WORK_SIZE const int The size of the work buffer needed for UncompressZlib.

Functions

Compression
CompressLZ Carries out LZ77 compression.
CompressLZEx Carries out LZ77 compression and expansion.
CompressRL Carries out run-length compression.
CompressHuffman Carries out Huffman compression.
CompressDeflate Performs deflate compression appended to the cx common header.
CompressGzip Performs deflate compression in gzip format.
CompressZlib Performs deflate compression in zlib format.
Decompression
GetCompressionType Gets the compression type from the first byte in the compressed data.
GetUncompressedSize Gets the data size after decompression.
GetGzipUncompressedSize Gets the size of the deflate compressed data in gzip format after decompression.
UncompressAny Detects the compression format from the data header and executes the appropriate decompression process.
UncompressRL Decompresses run-length compressed data.
UncompressLZ Decompresses LZ77 compressed data.
UncompressBLZ Decompresses LZ backward compressed (BLZ) data.
UncompressHuffman Decompresses Huffman compressed data.
UncompressLH Decompresses LZ-Huffman compressed data.
UncompressLRC Decompresses LZ-Range Coder compressed data.
UncompressDeflate Performs deflate compression data expansion appended to the cx common header.
UncompressGzip Decompresses deflate compressed data in gzip format.
UncompressZlib Decompresses deflate compressed data in zlib format.
UnfilterDiff Restores data converted using a difference filter.
Decompress with error checking
SecureUncompressAny Detects the compression format from the data header and executes the appropriate decompression process while checking for errors.
SecureUncompressRL Decompresses run-length compressed data while checking for errors.
SecureUncompressLZ Decompresses LZ77 compressed data while checking for errors.
SecureUncompressHuffman Decompresses Huffman compressed data while checking for errors.
SecureUncompressLH Decompresses LZ-Huffman compressed data.
SecureUncompressLRC Decompresses LZ-Range Coder compressed data.
SecureUnfilterDiff Restores data converted using a difference filter.
SecureUncompressBLZ Runs backward LZ (BLZ) decompression.
Streaming decompression
InitUncompContextRL Initializes the streaming decompression context for run-length compressed data.
InitUncompContextLZ Initializes the streaming decompression context for LZ77 compressed data.
InitUncompContextHuffman Initializes the streaming decompression context for Huffman compressed data.
InitUncompContextLH Initializes the streaming decompression context for LZ-Huffman compressed data.
InitUncompContextLRC Initializes the streaming decompression context for LZ-Range Coder compressed data.
InitUncompContextDeflate Initializes the context for the deflate compression data streaming expansion appended to the cx common header.
InitUncompContextGzip Initializes the streaming decompression context for deflate compressed data in the gzip format.
InitUncompContextZlib Initializes the streaming decompression context for deflate compressed data in the zlib format.
ReadUncompRL Streaming decompression of run-length compressed data.
ReadUncompLZ Streaming decompression of LZ77 compressed data.
ReadUncompHuffman Streaming decompression of Huffman compressed data.
ReadUncompLH Streaming decompression of LZ-Huffman compressed data.
ReadUncompLRC Streaming decompression of LZ-Range Coder compressed data.
ReadUncompDeflate Performs streaming decompression of deflate compression data appended to the cx common header.
ReadUncompGzip Streaming decompression of deflate compressed data in gzip format.
ReadUncompZlib Streaming decompression of deflate compressed data in zlib format.
IsFinishedUncomp Determines whether the streaming decompression of compressed data is finished.
InitUncompContextRLFront Initializes the streaming decompression context for run-length compressed data to the specified decompressed size.
InitUncompContextLZFront Initializes the streaming decompression context for LZ77 compressed data to the specified decompressed size.
InitUncompContextHuffmanFront Initializes the streaming decompression context for Huffman compressed data to the specified size.
InitUncompContextLHFront Initializes the streaming decompression context for LZ-Huffman compressed data to the specified decompressed size.
InitUncompContextLRCFront Initializes the streaming decompression context for LZ-Range Coder compressed data to the specified decompressed size.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL