Table of Contents

Constructor ZstandardCodec

Namespace
AvroSharp.Codecs
Assembly
AvroSharp.Codecs.dll

ZstandardCodec(int, bool)

Creates a zstandard codec.

public ZstandardCodec(int level = 3, bool checksum = false)

Parameters

level int

The compression level, from MinLevel (fastest) to MaxLevel (smallest); it affects writing only.

checksum bool

Whether each frame carries a checksum of its content, verified when it is read. Without one (the default, as in Java), a damaged block may decompress to other bytes instead of failing.

Exceptions

ArgumentOutOfRangeException

level is outside the supported range.