Class AvroCodec
- Namespace
- AvroSharp.Containers
- Assembly
- AvroSharp.dll
A compression codec for the blocks of an object container file. The null and deflate codecs are built in; other codecs (snappy, zstandard, bzip2, xz) are in the AvroSharp.Codecs package; any subclass can be passed to Codec and Codecs.
public abstract class AvroCodec
- Inheritance
-
AvroCodec
- Derived
- Inherited Members
Properties
- Name
Gets the name written to the file's
avro.codecmetadata entry, for exampledeflate.
- Null
Gets the codec that stores blocks uncompressed.
Methods
- Compress(ReadOnlyMemory<byte>, IBufferWriter<byte>)
Compresses one block.
- Decompress(ReadOnlyMemory<byte>, IBufferWriter<byte>)
Decompresses one block. The destination refuses to grow past the reader's block limit, so an implementation needs no limit of its own; it should throw InvalidDataException for corrupt data.
- ToString()
Returns a string that represents the current object.