Class DeflateCodec
- Namespace
- AvroSharp.Containers
- Assembly
- AvroSharp.dll
The deflate codec: raw DEFLATE (RFC 1951) without zlib framing, as the specification requires, using the
BCL's DeflateStream.
public sealed class DeflateCodec : AvroCodec
- Inheritance
-
DeflateCodec
- Inherited Members
Remarks
Instances are immutable and thread-safe.
Constructors
- DeflateCodec(CompressionLevel)
Creates a deflate codec.
Properties
- Level
Gets the compression level.
- Name
Gets the name written to the file's
avro.codecmetadata entry, for exampledeflate.
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.