Expand description
Shared types and constants for the lz4rip encode/decode crates.
Structs§
- Slice
Sink SliceSinkwrites into a preallocated&mut [u8].
Enums§
- Compress
Error - Errors that can happen during compression.
- Decompress
Error - 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
srcintodstusing fixed-size double-copy tricks for small sizes.