InterpreterStack<T> class
Utility class to represent the Script Interpreter Stack.
This class is used internally by the Script Interpreter, and should not really be useful in everyday wallet development.
Constructors
- InterpreterStack()
-
InterpreterStack.fromList(List<
T> list) - Construct a stack instance from a Dart Queue
Properties
Methods
-
add(
T item) → void -
contains(
T item) → bool -
copyToTop(
int index) → void - Copy the element at index to top of stack
-
descendingIterator(
) → Iterator< T> -
getAt(
int index) → T -
getFirst(
) → T -
getLast(
) → T -
moveToTop(
int index) → void - Move the element at index to top of the stack
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
peek(
{int index = -1}) → T - Return the item at the specified index on the stack without modifying the stack
-
pollFirst(
) → T -
pollLast(
) → T -
pop(
) → T - Remove the item at the top of the stack and return it as a byte buffer
-
push(
T item) → void - push an element onto the stack
-
removeAll(
) → void - remove all items from the stack
-
replaceAt(
int index, T value) → void - Replace item at 'index' with 'value'
-
set(
int index, T item) → void -
size(
) → int -
slice(
) → InterpreterStack - convenience method to create a copy of the stack
-
splice(
int index, int howMany, {T? values}) → List< T> - Removes items from the stack and optionally inserts new values
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited