interface RLPWriter
(source)
A writer for encoding values to RLP.
open fun writeBigInteger(value: BigInteger): Unit
Write a big integer to the output. |
|
open fun writeByte(value: Byte): Unit
Encode a byte to RLP. |
|
open fun writeByteArray(value: ByteArray): Unit
Encode a byte array to RLP. |
|
open fun writeInt(value: Int): Unit
Write an integer to the output. |
|
abstract fun writeList(fn: Consumer<RLPWriter>): Unit
Write a list of values. open fun <T : Any> writeList(elements: MutableList<T>, elementWriter: BiConsumer<RLPWriter, T>): Unit
Write a list of values, sending each value to a function to be interpreted. |
|
abstract fun writeLong(value: Long): Unit
Write a long to the output. |
|
abstract fun writeRLP(value: Bytes): Unit
Append an already RLP encoded value. Note that this method may not validate that |
|
open fun writeString(str: String): Unit
Write a string to the output. |
|
open fun writeUInt256(value: UInt256): Unit
Write a UInt256 to the output. |
|
abstract fun writeValue(value: Bytes): Unit
Encode a Bytes value to RLP. |