Base 64DecoderFlush 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
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
Complete bytes in an unpadded final quartet are decoded. A lone sextet is 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. |