static fun encodeUInt16(value: Int): Bytes!
(source)
Encode a 16-bit unsigned integer to a Bytes
value.
value
- Int: the integer to encode
IllegalArgumentException
- if the value is too large to be represented in 16 bits
Return
Bytes!: the SSZ encoding in a Bytes
value