CXInitUncompContextHuffmanFront

C Specification

#include <revolution/cx/CXStreamingUncompression.h>
void CXInitUncompContextHuffmanFront( CXUncompContextHuffman *context, void* dest, s32 destSize );

Arguments

context Pointer to the context structure to be used for streaming uncompression of the Huffman-compressed data.
dest Specifies the destination buffer for uncompressed data.
destSize Specifies the maximum amount of data that will be uncompressed.

Return Values

None.

Description

Initializes the context structure for streaming the uncompression of the Huffman-compressed data. Use this interface for uncompressing only the number of bytes of the data specified by destSize. To uncompress all of the data, use the CXInitUncompContextHuffman function.

When the CXReadUncompHuffman function is executed in this context, the sequential data is uncompressed in the region passed by the dest argument.

If this context is going to be reused, it needs to be reinitialized after the decompression of each file is completed.

See Also

CXGetUncompressedSize, CXUncompressHuffman, CXSecureUncompressHuffman, CXInitUncompContextHuffman, CXReadUncompHuffman, CXIsFinishedUncompHuffman, CXCompressHuffman, ntrompress

Revision History

2007/06/05 Initial version.