#include <nitro/mi/uncomp_stream.h>
typedef struct { u8* destp; // 4B s32 destCount; // 4B u16 destTmp; // 2B u8 destTmpCnt; // 1B u8 flags; // 1B u8 flagIndex; // 1B u8 length; // 1B u8 lengthFlg; // 1B u8 _padding[1]; // 1B // Total 16B } MIUncompContextLZ;
This is the context structure for saving the state of data uncompression when LZ77-compressed data is being read from the Card and undergoing streaming uncompression. The context is initialized by the MI_InitUncompContextLZ function and used by the MI_ReadUncompLZ* function to save the uncompression state.
| destp | Pointer to region where uncompressed data will be written |
| destCount | Remaining write size |
| destTmp | For storing data while writing |
| destTmpCnt | For storing data size while writing |
| flags | For storing compression flag data |
| flagIndex | For storing the current index of flag data |
| length | For storing the size of the continuous write |
| lengthFlg | For storing whether or not offset information spanning 2 bytes is currently being read |
MI_InitUncompContextLZ, MI_ReadUncompLZ*, MIUncompContextRL, MIUncompContextHuffman
11/30/2004 Initial version.
CONFIDENTIAL