|
Zarr.NET
0.6.1
Zarr reader and writer in .NET
|
Applies an ordered list of codecs as a pipeline. More...
Public Member Functions | |
| CodecPipeline (IReadOnlyList< IZarrCodec > codecs, int elementSize) | |
| Task< byte[]> | DecodeAsync (byte[] input, CancellationToken ct=default) |
| Task< byte[]> | EncodeAsync (byte[] input, CancellationToken ct=default) |
Applies an ordered list of codecs as a pipeline.
Zarr v3 codec pipeline: Decode: last codec → ... → first codec (compressed bytes → array bytes) Encode: first codec → ... → last codec (array bytes → compressed bytes)
The pipeline also resolves byte-order swapping for the BytesCodec based on the data type element size from ZarrArrayMetadata.
When all codecs in the pipeline are synchronous (returning completed Tasks), the decode/encode path avoids async state machine overhead entirely. This is the common case for Blosc, Zstd, and BytesCodec pipelines.
| ZarrNET.CodecPipeline.CodecPipeline | ( | IReadOnlyList< IZarrCodec > | codecs, |
| int | elementSize ) |
| Task< byte[]> ZarrNET.CodecPipeline.DecodeAsync | ( | byte[] | input, |
| CancellationToken | ct = default ) |
| Task< byte[]> ZarrNET.CodecPipeline.EncodeAsync | ( | byte[] | input, |
| CancellationToken | ct = default ) |