static fun decodeStringList(source: Bytes!): MutableList<String!>!
(source)
Read a list of strings from the SSZ source. Note: prefer to use #decodeStringList(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 string, or any string is too large (greater than 2^32 bytes)
EndOfSSZException
- if there are no more SSZ values to read
Return
MutableList<String!>!: a list of strings
static fun decodeStringList(source: Bytes!, limit: Int): MutableList<String!>!
(source)
Read a list of strings 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 string, or any string is too large (greater than 2^32 bytes)
EndOfSSZException
- if there are no more SSZ values to read
Return
MutableList<String!>!: a list of strings