YEnc DecoderFlush Method
Decode the final input, discarding incomplete framing and a dangling escape.
Definition
Namespace: MimeKit.Encodings
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The number of bytes written to the output buffer.
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
Int32The number of bytes written to the output buffer.
Implements
IMimeDecoderFlush(Byte, Int32, Int32, Byte)Remarks
The running Checksum is preserved after flushing.
Use EstimateOutputLength(Int32) to size the output buffer. 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. |