Feed
Encoded data is fed into consume and, as the Decoder.Feed's buffer fills, decoded data is output to the supplied Decoder.OutFeed. This allows for a "lazy" decode, or streaming of decoded data.
Once all data has been fed through consume, call doFinal to process remaining data in the Decoder.Feed buffer. Alternatively, utilize the use extension function (highly recommended) which will call doFinal (or close if there was an error with decoding) for you.
See also
Functions
Link copied to clipboard
Updates the Decoder.Feed with a new character to decode.
Link copied to clipboard