static fun decodeBytesList(source: Bytes!): MutableList<Bytes!>!
(source)
Read a list of Bytes
from the SSZ source. Note: prefer to use #decodeBytesList(Bytes, int)
instead, especially when reading untrusted data.
source
- Bytes!: the SSZ encoded bytes
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
MutableList<Bytes!>!: a list of Bytes
static fun decodeBytesList(source: Bytes!, limit: Int): MutableList<Bytes!>!
(source)
Read a list of Bytes
from the SSZ source.
source
- Bytes!: the SSZ encoded bytes
limit
- Int: 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 any byte array is too large (greater than 2^32 bytes)