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