Program

This is the compiled form of a program. It includes a table of constants that all functions under the same compilation share.

Constructors

this
this(ConstTable ct, ScriptFunction mainFunc, DebugMap debugMap)

constructor

Members

Functions

constTable
ConstTable constTable()

consttable property

debugMap
DebugMap debugMap()

debugmap property

mainFunction
ScriptFunction mainFunction()

mainfunction property

serialize
ubyte[] serialize()

serialize to raw bytes that can be written and read to files

Static functions

deserialize
Program deserialize(ubyte[] stream, string name)

deserialize chunk from ubyte stream

Static variables

MAGIC
uint MAGIC;

enums used when serializing to and from file in the future

MAGIC_REVERSE
uint MAGIC_REVERSE;

see above

VERSION
ubyte VERSION;

binary file format version

Meta