interface RLPReader
(source)
A reader for consuming values from an RLP encoded source.
isComplete |
Check if all values have been read. abstract fun isComplete(): Boolean |
isLenient |
Determine if this reader is lenient by default. abstract fun isLenient(): Boolean |
nextIsEmpty |
Check if the next item to be read is empty. abstract fun nextIsEmpty(): Boolean |
nextIsList |
Check if the next item to be read is a list. abstract fun nextIsList(): Boolean |
position |
Returns reader's index abstract fun position(): Int |
readBigInteger |
Read a big integer value from the RLP source. open fun readBigInteger(): BigInteger! open fun readBigInteger(lenient: Boolean): BigInteger! |
readByte |
Read a byte from the RLP source. open fun readByte(): Byte open fun readByte(lenient: Boolean): Byte |
readByteArray |
Read a byte array from the RLP source. open fun readByteArray(): ByteArray! |
readInt |
Read an integer value from the RLP source. open fun readInt(): Int open fun readInt(lenient: Boolean): Int |
readList |
Read a list of values from the RLP source. open fun <T : Any!> readList(fn: Function<RLPReader!, T>!): T abstract fun <T : Any!> readList(lenient: Boolean, fn: Function<RLPReader!, T>!): T
Read a list of values from the RLP source, populating a mutable output list. open fun readList(fn: BiConsumer<RLPReader!, MutableList<Any!>!>!): MutableList<Any!>! open fun readList(lenient: Boolean, fn: BiConsumer<RLPReader!, MutableList<Any!>!>!): MutableList<Any!>! |
readListContents |
Read a list of values from the RLP source, populating a list using a function interpreting each value. open fun <T : Any!> readListContents(fn: Function<RLPReader!, T>!): MutableList<T>! open fun <T : Any!> readListContents(lenient: Boolean, fn: Function<RLPReader!, T>!): MutableList<T>! |
readLong |
Read a long value from the RLP source. open fun readLong(): Long open fun readLong(lenient: Boolean): Long |
readString |
Read a string value from the RLP source. open fun readString(): String! open fun readString(lenient: Boolean): String! |
readUInt256 |
Read a open fun readUInt256(): UInt256! open fun readUInt256(lenient: Boolean): UInt256! |
readValue |
Read the next value from the RLP source. open fun readValue(): Bytes! abstract fun readValue(lenient: Boolean): Bytes! |
remaining |
The number of remaining values to read. abstract fun remaining(): Int |
skipNext |
Skip the next value or list in the RLP source. open fun skipNext(): Unit abstract fun skipNext(lenient: Boolean): Unit |