Decoder

sealed class Decoder<C : EncoderDecoder.Config>(val config: C)(source)

Decode things.

See also

Inheritors

Constructors

Link copied to clipboard
protected constructor(config: C)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
abstract inner class Feed : EncoderDecoder.Feed<C>

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.

Link copied to clipboard
fun interface OutFeed

A callback for returning decoded bytes as they are produced by Decoder.Feed.

Properties

Link copied to clipboard
val config: C

Functions

Link copied to clipboard

Creates a new Decoder.Feed, outputting decoded data to the supplied Decoder.OutFeed.

Link copied to clipboard
protected abstract fun newDecoderFeedProtected(out: Decoder.OutFeed): Decoder.Feed<C>