tuweni / org.apache.tuweni.ssz / SSZ / decodeInt32

decodeInt32

static fun decodeInt32(source: Bytes!): Int (source)

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

Parameters

source - Bytes!: the SSZ encoded bytes

Exceptions

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

EndOfSSZException - if there are no more SSZ values to read

Return
Int: an int