Skip to main content

Crate lz4rip_core

Crate lz4rip_core 

Source
Expand description

Shared types and constants for the lz4rip encode/decode crates.

Structs§

SliceSink
SliceSink writes into a preallocated &mut [u8].

Enums§

CompressError
Errors that can happen during compression.
DecompressError
An error representing invalid compressed data.

Constants§

END_OFFSET
LAST_LITERALS + 1: extra byte for register-width reads near end.
LAST_LITERALS
Last 5 bytes are always literals.
LZ4_MIN_LENGTH
Minimum compressible block length: MFLIMIT + 1 for the token.
MAX_DISTANCE
Maximum match distance (65535).
MFLIMIT
Last match must start at least 12 bytes before end of block.
MINMATCH
Minimum match length.
WINDOW_SIZE
Window size for LZ4 compression (64 KB).

Traits§

Sink
Trait for output buffers used during compression and decompression.

Functions§

slice_copy
Copy src into dst using fixed-size double-copy tricks for small sizes.