struct huffman [src]
Huffman only compression. Without Lempel-Ziv match searching. Faster
compression, less memory requirements but bigger compressed sizes.
Members
- compress (Function)
- compressor (Function)
- Compressor (Type Function)
Source
pub const huffman = struct {
pub fn compress(reader: anytype, writer: anytype) !void {
try deflate.huffman.compress(.gzip, reader, writer);
}
pub fn Compressor(comptime WriterType: type) type {
return deflate.huffman.Compressor(.gzip, WriterType);
}
pub fn compressor(writer: anytype) !huffman.Compressor(@TypeOf(writer)) {
return deflate.huffman.compressor(.gzip, writer);
}
}