#include <revolution/cx.h> s32 CXSecureUncompressLZ( const void *srcp, u32 srcSize, void *destp );
| srcp | Source address where the LZ77 compressed data is stored |
|---|---|
| srcSize | Source data size |
| destp | Destination address where data is expanded |
| 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 | The expansion destination buffer will be exceeded (buffer overrun). |
This function decompresses LZ77-compressed or LZ77 extended-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 CXReadUncompLZ function.
CXGetUncompressedSize
CXUncompressLZ
CXInitUncompContextLZ
CXReadUncompLZ
CXIsFinishedUncompLZ
CXCompressLZ
CXCompressLZEx
ntcompress
2009/09/25 Explained data compressed in the LZ77 extended-compression format.
2007/09/03 Corrected error in the See Also section. Added link to CXCompressLZEx in See Also section.
2007/05/24 Initial version.
CONFIDENTIAL