Crate rwkvzip

Crate rwkvzip 

Source

Re-exports§

pub use rwkv7::Config;
pub use rwkv7::Model;
pub use rwkv7::ScratchBuffers;
pub use rwkv7::State;

Modules§

coders
Entropy coders for rwkvzip.
rwkv7
High-performance RWKV7 inference kernel for x86_64.

Structs§

CompressionStats
Statistics from a compression operation.
Compressor
Main compressor/decompressor that combines RWKV7 inference with entropy coding.
Header
Header structure for compressed data files.

Enums§

CoderType
Entropy coder type for compression.

Constants§

MAGIC
File format magic number: “GPTZ” in little-endian (0x47505A54 as ASCII). Used to identify valid rwkvzip compressed files.
VERSION
File format version. Increment on breaking changes to ensure compatibility.
VOCAB_SIZE
Vocabulary size for byte-level compression. Each byte (0-255) is treated as a separate symbol.

Functions§

compress_with_stats
Compress data and return both the compressed output and statistics.
crc32
Compute CRC32 checksum for data integrity verification.