#include <revolution/cx.h> u32 CXCompressRL( const u8 *srcp, u32 size, u8 *dstp );
| srcp | The source address where the data to compress is stored. |
|---|---|
| size | The data size of the source to compress. |
| dstp | Needs a pointer to the compression destination buffer and a region greater than the source data size. Requires 4-byte alignment. |
Returns the size of the compressed data. If the data after compression is larger than the source file, no compression will be performed and a zero will be returned.
Performs RL-compression on the data, then writes it to a specified memory region. A region of the same size as the source data must be prepared in the compression destination buffer.
CXGetUncompressedSize, CXUncompressRL, CXSecureUncompressRL, CXInitUncompContextRL, CXReadUncompRL, CXIsFinishedUncompRL, ntcompress
2007/09/03 Corrected error in the See Also section.
2006/07/06 Initial version.
CONFIDENTIAL