static fun decodeInt(source: Bytes, bitLength: Int): Int
(source)
Read a SSZ encoded two's-compliment integer from a Bytes value.
source
- the SSZ encoded bytes
bitLength
- the bit length of the integer to read (a multiple of 8)
InvalidSSZTypeException
- if there are insufficient encoded bytes for the desired bit length, or the decoded value was too large to fit into an int
EndOfSSZException
- if there are no more SSZ values to read
Return
an int