numcodecs_zero
numcodecs_zero
ZeroCodec for the numcodecs buffer compression API.
Classes:
-
ZeroCodec–Codec that decodes to an all-zero array of the same data type and shape as
ZeroCodec
Bases: Codec
Codec that decodes to an all-zero array of the same data type and shape as the original data.
Encoding produces a bytestring containing information on the data type and shape.
Methods:
encode
encode(buf: Buffer) -> bytes
Encode the buffer information.
| Parameters: |
|
|---|
| Returns: |
|
|---|
decode
decode(buf: Buffer, out: None | Buffer = None) -> Buffer
Decode the buffer information.
| Parameters: |
|
|---|
| Returns: |
|
|---|