Module aluvm::program

source ·
Expand description

Business logic and data structures for working with AluVM code libraries

Modules

Constants defined for AluVM libraries

Structs

Error indicating that an end of code segment boundary is reached during read or write operation
Cursor for accessing bytecode bounded by CODE_SEGMENT_MAX_LEN length and data segment bounded by DATA_SEGMENT_MAX_LEN
ISA extensions segment
AluVM executable code library
A library identifier
Tag used for LibId hash type
Library segment data keeping collection of libraries which MAY be used in some program. Libraries are referenced in the bytecode using 16-bit position number in this index.
unable to add a library to the library segment: maximum number of libraries (2^16) exceeded
Location within a library
An AluVM program executable by a virtual machine.

Enums

Errors while assembling library from the instruction set
Errors while processing ISA extensions segment
Errors returned by Program::add_lib method
Error parsing LibId bech32m representation
Errors while processing binary-encoded segment data
Errors write operations

Traits

Trait for reading instruction data from bytecode
Trait for writing instruction data into bytecode