Base |
public int Flush( byte[] input, int startIndex, int length, byte[] output )
Exception | Condition |
---|---|
ArgumentNullException | input is null. -or- output is null. |
ArgumentOutOfRangeException | startIndex 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. |
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).