Skip to Content
The Alchemy Project

include/field/lucky_wheels_lzpack.h

The LZ packer's state: hash chains over a 1024-byte window, one chain per byte value, and the output it is building.

Included by lucky_wheels.c.

Structures

NameDescription
structLZ_PACK_NODEA position of the LZ packer's window in the chain of the byte value it holds.
structLZ_PACK_STATEThe LZ packer's state: a node per window position, a chain head per byte value, the byte at each position, the best match and the output.

Macros

NameDescription
#defineLzPackStateWork WaitForFlashWriteWork

Variables

NameDescription
extern LZ_PACK_STATE *WaitForFlashWriteWorkThe packer has no metatile of its own for its state pointer: it borrows the one of the SDK's flash library, which IdentifyFlash sets again before the flash code reads it.

Description

The LZ packer's state: hash chains over a 1024-byte window, one chain per byte value, and the output it is building.

Macros in detail

LzPackStateWork

#define LzPackStateWork WaitForFlashWriteWork

Referenced by fdLZPackCopyBufferedBytes(), fdLZPackFindWindowMatch(), fdLZPackInsertSlotNode(), fdLZPackPackData(), fdLZPackReadInput(), fdLZPackRemoveSlotNode() and fdLZPackResetChains().

Definition at line 50 of file lucky_wheels_lzpack.h.

Variables in detail

WaitForFlashWriteWork

extern LZ_PACK_STATE *WaitForFlashWriteWork

The packer has no metatile of its own for its state pointer: it borrows the one of the SDK's flash library, which IdentifyFlash sets again before the flash code reads it.

Definition at line 49 of file lucky_wheels_lzpack.h.