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