Package-level declarations

Types

Link copied to clipboard
sealed class Decoder<C : EncoderDecoder.Config>(val config: C)

Decode things.

Link copied to clipboard
sealed class Encoder<C : EncoderDecoder.Config>(config: C) : Decoder<C>

Encode things.

Link copied to clipboard
abstract class EncoderDecoder<C : EncoderDecoder.Config>(config: C) : Encoder<C>

Base abstraction which expose Encoder and Decoder (sealed classes) such that inheriting classes must implement both.

Link copied to clipboard
open class EncodingException : RuntimeException
Link copied to clipboard
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS])
annotation class ExperimentalEncodingApi

Denotes an api as experimental, such that it may change inadvertently without notice.

Functions

Link copied to clipboard
inline fun <C : EncoderDecoder.Config, T : EncoderDecoder.Feed<C>?, V> T.use(block: (T) -> V): V

Executes the given block function and then closes the Feed by either: