abstract fun writeList(fn: Consumer<RLPWriter>): Unit
(source)
Write a list of values.
fn
- A consumer that will be provided with a RLPWriter that can consume values.
open fun <T : Any> writeList(elements: MutableList<T>, elementWriter: BiConsumer<RLPWriter, T>): Unit
(source)
Write a list of values, sending each value to a function to be interpreted.
elements
- the list of elements to write
elementWriter
- the function called for each element in the list