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