#include <revolution/cx/CXStreamingUncompression.h>
s32 CXReadUncompLRC( CXUncompContextLRC *context, const void* data, u32 len );
| context | Pointer to the context structure for uncompression of LRC-compressed data. |
| data | Pointer to the next data in the file being decompressed. |
| len | Size of the data provided in the 2nd argument. |
Returns a positive value if data remains to be uncompressed, and a negative error code if an error has occurred.
If all data was successfully decompressed, the function returns 0.
| Positive integer | Number of bytes not yet decompressed. |
| CX_ERR_SUCCESS | Ended normally (==0). |
| 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_ILLEGAL_TABLE | The Huffman table contains mistakes. |
Performs streaming uncompression of LRC-compressed data, doing just the data size given, and copies it to the buffer specified by the CXInitUncompContextLRC function. Compared to the CXUncompressLRC function, which decompresses all data at once, this function is slow.
CXGetUncompressedSize,
CXUncompressLRC,
CXSecureUncompressLRC,
CXInitUncompContextLRC,
CXIsFinishedUncompLRC,
ntrompress
2007/11/01 Initial version.
CONFIDENTIAL