Click or drag to resize
MimeKit

QEncoderFlush Method

Encode the specified input into the output buffer, flushing any internal buffer state as well.

Namespace: MimeKit.Encodings
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
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

IMimeEncoderFlush(Byte, Int32, Int32, Byte)
Exceptions
ExceptionCondition
ArgumentNullException

input is null.

-or-

output is null.

ArgumentOutOfRangeExceptionstartIndex and length do not specify a valid range in the input byte array.
ArgumentException

output is not large enough to contain the encoded content.

Use the EstimateOutputLength(Int32) method to properly determine the necessary length of the output byte array.

Remarks

Encodes the specified input into the output buffer, flusing any internal state as well.

The output buffer should be large enough to hold all of the encoded input. For estimating the size needed for the output buffer, see EstimateOutputLength(Int32).

See Also