Creates a new encoder with exactly the same state as this encoder.
A new encoder with identical state.
Estimates the number of bytes needed to encode the specified number of input bytes.
The input length.
The estimated output length.
Encodes the specified input into the output buffer.
The output buffer should be large enough to hold all encoded input. Use estimateOutputLength to estimate the required size.
The input buffer.
The starting index of the input buffer.
The length of the input range.
The output buffer.
The number of bytes written to the output buffer.
Encodes the specified input into the output buffer and flushes internal state.
The output buffer should be large enough to hold all encoded input. Use estimateOutputLength to estimate the required size.
The input buffer.
The starting index of the input buffer.
The length of the input range.
The output buffer.
The number of bytes written to the output buffer.
Resets the state of the encoder.
An interface for incrementally encoding content.