TupleReader class
Constructors
-
TupleReader.new(List<
TupleItem> items)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
peek(
) → TupleItem - Returns a first item in the internal list
-
pop(
) → TupleItem - Returns a first item in the internal list and removes it from that list
-
readAddress(
) → InternalAddress - Throws 'Not a cell' if the type of the popped item is neither TiCell, TiSlice nor TiBuilder
-
readAddressOrNull(
) → InternalAddress? - Throws 'Not a cell' if the type of the popped item is neither TiNull, TiCell, TiSlice nor TiBuilder
-
readBigInt(
) → BigInt - Returns a BigInt of popped first item of the internal list
-
readBigIntOrNull(
) → BigInt? -
readBool(
) → bool -
readBoolOrNull(
) → bool? -
readCell(
) → Cell - Throws 'Not a cell' if the type of the popped item is neither TiCell, TiSlice nor TiBuilder
-
readCellOrNull(
) → Cell? - Throws 'Not a cell' if the type of the popped item is neither TiNull, TiCell, TiSlice nor TiBuilder
-
readInt(
) → int -
readIntOrNull(
) → int? -
readList(
) → Uint8List - Throws 'Not a Uint8List' if either remainingRefs != 0 or remainingBits % 8 != 0 for the read Cell as a Slice
-
readListOrNull(
) → Uint8List? - Throws 'Not a Uint8List' if either remainingRefs != 0 or remainingBits % 8 != 0 for the read Cell as a Slice
-
readString(
) → dynamic -
readStringOrNull(
) → dynamic -
readTuple(
) → TupleReader - Throws 'Not a tuple' if the type of the popped item is not TiTuple
-
readTupleOrNull(
) → TupleReader? - Throws 'Not a tuple' if the type of the popped item is neither TiNull nor TiTuple
-
skip(
[int n = 1]) → TupleReader -
Returns the updated TupleReader after removing
n
entries from internal list -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited