tuweni / org.apache.tuweni.rlp / RLPWriter / writeList

writeList

abstract fun writeList(fn: Consumer<RLPWriter>): Unit (source)

Write a list of values.

Parameters

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.

Parameters

elements - the list of elements to write

elementWriter - the function called for each element in the list

- The type of the list elements.