open fun readStringList(): MutableList<String!>!
(source)
Read a list of strings from the SSZ source. Note: prefer to use #readStringList(int)
instead, especially when reading untrusted data.
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.
abstract fun readStringList(limit: Int): MutableList<String!>!
(source)
Read a list of strings from the SSZ source.
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 the size of any string would exceed the limit.
EndOfSSZException
- If there are no more SSZ values to read.
Return
MutableList<String!>!: A list of strings.