static fun encodeInt8(value: Int): Bytes!
(source)
Encode an 8-bit two's-compliment integer to a Bytes
value.
value
- Int: the integer to encode
IllegalArgumentException
- if the value is too large to be represented in 8 bits
Return
Bytes!: the SSZ encoding in a Bytes
value