Click or drag to resize
MimeKit

BestEncodingFilterFilter Method

Filter the specified input.

Namespace: MimeKit.IO.Filters
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public byte[] Filter(
	byte[] input,
	int startIndex,
	int length,
	out int outputIndex,
	out int outputLength
)

Parameters

input  Byte
The input buffer.
startIndex  Int32
The starting index of the input buffer.
length  Int32
The number of bytes of the input to filter.
outputIndex  Int32
The starting index of the output in the returned buffer.
outputLength  Int32
The length of the output buffer.

Return Value

Byte
The filtered output.

Implements

IMimeFilterFilter(Byte, Int32, Int32, Int32, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptioninput is null.
ArgumentOutOfRangeExceptionstartIndex and length do not specify a valid range in the input byte array.
Remarks
Filters the specified input buffer starting at the given index, spanning across the specified number of bytes.
See Also