tuweni / org.apache.tuweni.ssz / SSZ / encodeInt16

encodeInt16

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

Encode a 16-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 16 bits

Return
Bytes!: the SSZ encoding in a Bytes value