tuweni / org.apache.tuweni.ssz / SSZ / encodeInt8

encodeInt8

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

Encode an 8-bit two's-compliment 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