Decoder
Functions
Returns the average number of characters that will be produced for each byte of input. This heuristic value may be used to estimate the size of the output buffer required for a given input sequence.
Convenience method that decodes the remaining content of a single input byte buffer into a newly-allocated character buffer.
Decodes as many bytes as possible from the given input buffer, writing the results to the given output buffer.
Retrieves the charset that was detected by this decoder (optional operation).
Flushes this decoder.
Returns this decoder's current action for malformed-input errors.
Returns the maximum number of characters that will be produced for each byte of input. This value may be used to compute the worst-case size of the output buffer required for a given input sequence. This value accounts for any necessary content-independent prefix or suffix
Changes this decoder's action for malformed-input errors.
Changes this decoder's action for unmappable-character errors.
Returns this decoder's replacement value.
Changes this decoder's replacement value.
Resets this decoder, clearing any internal state.
Returns this decoder's current action for unmappable-character errors.