Documentation ¶
Overview ¶
Package vmstate contains a set of VM state flags along with appropriate type. It provides a set of conversion/marshaling functions/methods for this type as well. This package is made to make VM state reusable across all of the other components that need it without importing whole VM package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State uint8
State of the VM. It's a set of flags stored in the integer number.
const ( // Halt represents HALT VM state (finished normally). Halt State = 1 << iota // Fault represents FAULT VM state (finished with an error). Fault // Break represents BREAK VM state (running, debug mode). Break // None represents NONE VM state (not started yet). None State = 0 )
Available States.
func FromString ¶
FromString converts a string into the State.
func (State) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*State) UnmarshalJSON ¶
UnmarshalJSON implements the json.Marshaler interface.
Click to show internal directories.
Click to hide internal directories.