CXUncompContextLZ

Definition

#include <revolution/cx/CXStreamingUncompression.h>

typedef struct
{
    u8* destp;        // 4B
    s32 destCount;    // 4B
    s32 forceDestCount; // 4B
    s32 length;         // 4B
    u8      lengthFlg ;     // 1B
    u8      flags ;         // 1B
    u8  flagIndex;      // 1B
    u8  headerSize;     // 1B
    u8  exFormat;       // 1B
    u8  padding_[3];    // 3B
                     // Total 24B
} CXUncompContextLZ;

Description

This is the context structure for saving the state of data uncompression when LZ77-compressed or LZ77 extended-compressed data is being read from the card and is undergoing streaming uncompression.
The context is initialized by the CXInitUncompContextLZ function and used by the CXReadUncompLZ function to save the uncompression state.

destp Pointer to the destination region where uncompressed data will be written.
destCount Remaining write size.
forceDestCount Uncompression destination size that is forcibly set.
length For storing the size of continuous write.
lengthFlg For storing whether or not offset information spanning 2 bytes is currently being read.
flags For storing compression flag data.
flagIndex For storing the current index of flag data.
headerSize For storing the compressed header size while reading.
exFormat LZ77 extended compression option.

See Also

CXInitUncompContextLZ
CXReadUncompLZ
CXUncompContextRL
CXUncompContextHuffman

Revision History

2009/09/25 Explained data compressed in the LZ77 extended-compression format.
2006/09/03 Reflected changes to the structure definition.
2006/07/06 Initial version.


CONFIDENTIAL