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

writeList

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

Write a list of values.

Parameters

fn - Consumer<RLPWriter!>!: 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 - MutableList<T>!: the list of elements to write

elementWriter - BiConsumer<RLPWriter!, T>!: the function called for each element in the list

- The type of the list elements.