GrBytecode

Compiled form of grimoire.

Constructors

this
this()

Default ctor

this
this(GrBytecode bytecode)

Copy ctor

this
this(string filePath)

Load from a file

this
this(ubyte[] buffer)

Load from bytes

Members

Functions

deserialize
void deserialize(ubyte[] buffer)

Deserialize the bytecode from an array.

load
void load(string fileName)

Load the bytecode from a file.

save
void save(string fileName)

Save the bytecode to a file.

serialize
ubyte[] serialize()

Serialize the bytecode into an array.

Structs

PrimitiveReference
struct PrimitiveReference

Data used to setup GrCall objects.

Variable
struct Variable

Reference to a global variable.

Variables

classes
GrClassBuilder[] classes;

All the classes.

events
uint[string] events;

global event functions. Their name are in a mangled state.

fconsts
GrFloat[] fconsts;

Floating point constants.

fglobalsCount
uint fglobalsCount;

Number of float based global variables declared.

iconsts
GrInt[] iconsts;

Integer constants.

iglobalsCount
uint iglobalsCount;

Number of int based global variables declared.

oglobalsCount
uint oglobalsCount;

Number of ptr based global variables declared.

opcodes
uint[] opcodes;

All the instructions.

primitives
PrimitiveReference[] primitives;

Callable primitives.

sconsts
GrString[] sconsts;

String constants.

sglobalsCount
uint sglobalsCount;

Number of string based global variables declared.

symbols
GrSymbol[] symbols;
Undocumented in source.
variables
Variable[string] variables;

Global variables

Meta