CXInitUncompContextLZFront

Syntax

#include <revolution/cx/CXStreamingUncompression.h>

void CXInitUncompContextLZFront( CXUncompContextLZ *context, 
                                 void*              dest
                                 s32                destSize );

Arguments

context Pointer to the context structure to be used for streaming the uncompression of the LZ77-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 LZ77-compressed data. Use this interface for uncompressing only the number of bytes of data specified by destSize.
To uncompress all data, use the CXInitUncompContextLZ function.

When the CXReadUncompLZ function is run using this context, the next set of data gets expanded in the region passed by the dest argument.

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

See Also

CXGetUncompressedSize, CXUncompressLZ, CXSecureUncompressLZ, CXInitUncompContextLZ, CXReadUncompLZ, CXIsFinishedUncompLZ, CXUncompContextLZ, CXCompressLZ, CXCompressLZEx, ntcompress

Revision History

2007/09/03 Corrected an error in See Also.
2007/06/05 Initial version.


CONFIDENTIAL