UUDecoderFlush Method

Decode the final input, flushing any buffered input to the output.

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

Complete bytes in a partial payload quartet are decoded up to the declared line length. Incomplete framing and fragments that cannot produce a byte are discarded.

Use EstimateOutputLength(Int32) to size the output buffer, including buffered input. Call Reset before decoding another stream.

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