PassThroughDecoderFlush Method

Decode the final input into the output buffer.

Definition

Namespace: MimeKit.Encodings
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int Flush(
	byte[] input,
	int startIndex,
	int length,
	byte[] output
)

Parameters

input  Byte
The input buffer.
startIndex  Int32
The starting index of the input buffer.
length  Int32
The length of the input buffer.
output  Byte
The output buffer.

Return Value

Int32
The number of bytes written to the output buffer.

Implements

IMimeDecoderFlush(Byte, Int32, Int32, Byte)

Remarks

Copies the input verbatim. This decoder has no buffered input.

Exceptions

ArgumentNullException input or output is .
ArgumentOutOfRangeException startIndex and length do not specify a valid input range.
ArgumentException output is smaller than EstimateOutputLength(Int32) requires.

See Also