object Companion
source · line 12public
public companion : ValueEncoder<Unit>, ValueDecoder<Unit>
- Supertype
ValueEncoder<Unit> - Supertype
ValueDecoder<Unit>
Default codecs for generic companion constraints, separate from the Unit data value.
function decode
source · line 17public
public override fun decode(decoder: Decoder): Unit
- Overrides
decode· ValueDecoder
Decodes an explicit null using the existing Unit codec.
parameter decoder
source · line 17public
decoder: Decoder
function encode
source · line 14public
public override fun encode(value: Unit, encoder: Encoder): Unit
- Overrides
encode· ValueEncoder
Encodes the Unit value using the existing explicit null codec.
parameter value
source · line 14public
value: Unit
parameter encoder
source · line 14public
encoder: Encoder