WasmInstanceFuel class abstract

Returns the fuel that can be used to limit the amount of computations performed by the instance.

Constructors

WasmInstanceFuel()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addFuel(int delta) → void
Adds delta quantity of fuel to the remaining fuel.
consumeFuel(int delta) int
Consumes delta quantity of fuel from the remaining fuel. Returns the remaining fuel after the operation.
fuelAdded() int
Returns the fuel added so far.
fuelConsumed() int
Returns the fuel consumed so far.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited