Skip to main content

Module stream

Module stream 

Source
Expand description

Block streams (IO::CompressedStream): a table of up-to-32 KiB blocks, each LZF or stored.

u32 n
n x { u32 offset, u16 compSize (0 = stored), u16 rawSize }
blocks...

IO::CompressedStream::Open requires 4 + 8n + sum(compSize or rawSize) == len.

Constants§

BLOCK_SIZE
The largest expanded block, 32 KiB.

Functions§

decode
Expand a block stream.
encode
The writing side of decode: raw in 32 KiB blocks, each LZF unless storing it is no larger. Offsets count from the start of the stream.