numcodecs_huffman
numcodecs_huffman
HuffmanCodec for the numcodecs buffer compression API.
Classes:
-
HuffmanCodec–Codec that uses Huffman entropy coding to encode the data.
HuffmanCodec
Bases: Codec
Codec that uses Huffman entropy coding to encode the data.
Encoding produces a bytestring containing the Huffman code table and the encoded data.
Methods:
encode
encode(buf: Buffer) -> bytes
Encode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
decode
decode(buf: Buffer, out: None | Buffer = None) -> Buffer
Decode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|