object Companion
source · line 255public
public companion : ValueEncoder<UInt8>, ValueDecoder<UInt8>, ValueInspector<UInt8>
- Supertype
ValueEncoder<UInt8> - Supertype
ValueDecoder<UInt8> - Supertype
ValueInspector<UInt8>
Fixed representation bounds and the scalar encoding, decoding, and inspection protocols.
property MIN_VALUE
source · line 265public
public const val MIN_VALUE: UInt8
get: public read-only
The smallest representable 8-bit unsigned integer.
function encode
source · line 274public
public override fun encode(value: UInt8, encoder: Encoder): Unit
- Overrides
encode· ValueEncoder
Writes the integer through the encoder's single-value container.
parameter value
source · line 274public
value: UInt8
parameter encoder
source · line 274public
encoder: Encoder
function decode
source · line 281public
public override fun decode(decoder: Decoder): UInt8
- Overrides
decode· ValueDecoder
Decodes an integer and rejects values outside the 8-bit unsigned range with DecodingException.
parameter decoder
source · line 281public
decoder: Decoder
property MAX_VALUE
source · line 269public
public const val MAX_VALUE: UInt8
get: public read-only
The largest representable 8-bit unsigned integer.
function inspect
source · line 259public
public override fun inspect(value: UInt8): ValueView
- Overrides
inspect· ValueInspector
Exposes the integer as a scalar value observation without reference identity.
parameter value
source · line 259public
value: UInt8