CXSecureUncompressLH

Syntax

#include <revolution/cx.h>

s32 CXSecureUncompressLH( const void* srcp, u32 srcSize, void* destp, void* work );

Arguments

srcp Source address where data compressed in LH format is stored.
srcSize Source data size.
destp Destination address where the data is expanded.
work Work buffer required for data decompression. The size given by CX_UNCOMPRESS_LH_WORK_SIZE is required.

Return Values

CX_ERR_SUCCESS Successful end.
CX_ERR_UNSUPPORTED Unsupported compression data type.
CX_ERR_SRC_SHORTAGE Source data size is too small.
CX_ERR_SRC_REMAINDER Source data size is too large.
CX_ERR_DEST_OVERRUN Overrun in the decompression buffer.
CX_ERR_ILLEGAL_TABLE The Huffman table contains mistakes.

Description

Decompresses LH-format-compressed data and writes the data to the specified region of memory. Align the source address to a 4-byte boundary.

To perform streaming expansion of data, use the CXReadUncompLH function.

See Also

CXGetUncompressedSize
CXUncompressLH
CXInitUncompContextLH
CXReadUncompLH
CXIsFinishedUncompLH
ntrompress

Revision History

2009/01/28 Added a description of parameters.
2007/11/01 Initial version.


CONFIDENTIAL