tuweni / org.apache.tuweni.ssz / SSZ / encodeUInt8

encodeUInt8

static fun encodeUInt8(value: Int): Bytes! (source)

Encode an 8-bit unsigned integer to a Bytes value.

Parameters

value - Int: the integer to encode

Exceptions

IllegalArgumentException - if the value is too large to be represented in 8 bits

Return
Bytes!: the SSZ encoding in a Bytes value