abstract fun readFixedBytesVector(listSize: Int, byteLength: Int, limit: Int): MutableList<Bytes>
(source)
Read a known-size fixed length list of known-size fixed length Bytes from the SSZ source.
listSize
- The size of the fixed-length list being read.
byteLength
- The number of fixed-length Bytes per homogenous List element.
limit
- The maximum number of bytes to read for each list element.
InvalidSSZTypeException
- If the next SSZ value is not a list, any value in the list is not a byte array, or the size of any byte array would exceed the limit.
EndOfSSZException
- If there are no more SSZ values to read.
Return
A list of Bytes.
open fun readFixedBytesVector(listSize: Int, byteLength: Int): MutableList<Bytes>
(source)
Read a known-size fixed length list of known-size fixed length Bytes from the SSZ source. Note: prefer to use #readFixedBytesVector(int, int, int)
instead, especially when reading untrusted data.
listSize
- The size of the fixed-length list being read.
byteLength
- The number of fixed-length Bytes per homogenous List element.
InvalidSSZTypeException
- If the next SSZ value is not a list, any value in the list is not a byte array, or any byte array is too large (greater than 2^32 bytes).
EndOfSSZException
- If there are no more SSZ values to read.
Return
A list of Bytes.