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
Properties
For implementations to pass in as a constructor argument and reference while performing decoding operations. Upon close being called, this is set to the Decoder.OutFeed.NoOp instance which ensures any local object references that the initial OutFeed has are not leaked and can be promptly GCd.
Functions
Updates the Decoder.Feed with a new character to decode.