tuweni / org.apache.tuweni.ssz / SSZReader / readFixedByteArray

readFixedByteArray

open fun readFixedByteArray(byteLength: Int, limit: Int): ByteArray! (source)

Read an array of fixed-length homogenous Bytes from the SSZ source.

Parameters

byteLength - Int: The number of fixed-length Bytes per array element.

limit - Int: The maximum number of bytes to read.

Exceptions

InvalidSSZTypeException - If the next SSZ value is not a byte array, or would exceed the limit.

EndOfSSZException - If there are no more SSZ values to read.

Return
ByteArray!: The byte array for the next value.