ssz / org.apache.tuweni.ssz / SSZ / decodeInt16

decodeInt16

static fun decodeInt16(source: Bytes): Int (source)

Read a 16-bit two's-compliment integer from the SSZ source.

Parameters

source - the SSZ encoded bytes

Exceptions

InvalidSSZTypeException - if there are insufficient encoded bytes for a 16-bit int

EndOfSSZException - if there are no more SSZ values to read

Return
an int