|
Zarr.NET
0.6.1
Zarr reader and writer in .NET
|
The "crc32c" bytes-to-bytes codec (Zarr v3 spec). More...
Public Member Functions | |
| Task< byte[]> | DecodeAsync (byte[] input, CancellationToken ct=default) |
| Decodes bytes produced by the previous codec step. | |
| Task< byte[]> | EncodeAsync (byte[] input, CancellationToken ct=default) |
| Encodes bytes for the next codec step. | |
Public Member Functions inherited from ZarrNET.IZarrCodec | |
Properties | |
| string | Name [get] |
| Codec name as it appears in zarr.json (e.g. "gzip", "zstd", "bytes"). | |
Properties inherited from ZarrNET.IZarrCodec | |
The "crc32c" bytes-to-bytes codec (Zarr v3 spec).
On encode: computes CRC32C over the input and appends 4 bytes (little-endian). On decode: reads the trailing 4-byte checksum, validates it against the payload, and returns the payload without the checksum bytes.
This codec is commonly used as an index codec in sharding configurations to protect the shard index integrity.
Uses a self-contained CRC32C implementation (Castagnoli polynomial 0x1EDC6F41) with no external NuGet dependencies.
| Task< byte[]> ZarrNET.Crc32cCodec.DecodeAsync | ( | byte[] | input, |
| CancellationToken | ct = default ) |
Decodes bytes produced by the previous codec step.
Implements ZarrNET.IZarrCodec.
| Task< byte[]> ZarrNET.Crc32cCodec.EncodeAsync | ( | byte[] | input, |
| CancellationToken | ct = default ) |
Encodes bytes for the next codec step.
Implements ZarrNET.IZarrCodec.
|
get |
Codec name as it appears in zarr.json (e.g. "gzip", "zstd", "bytes").
Implements ZarrNET.IZarrCodec.