Encode(ReadOnlySpan, IBufferWriter, StreamEncoderContext) Method

Definition

Encodes data and writes the result to output.

public void Encode(ReadOnlySpan<byte> data, IBufferWriter<byte> output, StreamEncoderContext context)

Parameters

data
ReadOnlySpan<Byte>

The data to encode: the stream's data, or the previous encoder's output in a chain. May be empty.

output
IBufferWriter<Byte>

Where to write the encoded bytes.

context
StreamEncoderContext

The parameters the decoding filter will read, the stream's dictionary and the compression level.

Remarks

ISO 32000-2 §7.4.4.1; RFC 1950; RFC 1951.