#include <script.h>
Public Member Functions | |
RawScript (uint16 size) | |
RawScript (const FWScriptInfo &info, const byte *data, uint16 size) | |
RawScript (const RawScript &src) | |
RawScript & | operator= (const RawScript &src) |
void | setData (const FWScriptInfo &info, const byte *data) |
const ScriptVars & | labels () const |
byte | getByte (unsigned int pos) const |
uint16 | getWord (unsigned int pos) const |
const char * | getString (unsigned int pos) const |
uint16 | getLabel (const FWScriptInfo &info, byte index, uint16 offset) const |
Public Attributes | |
uint16 | _size |
Bytecode length. | |
Protected Member Functions | |
void | computeLabels (const FWScriptInfo &info) |
int | getNextLabel (const FWScriptInfo &info, int offset) const |
Script bytecode and initial labels, ScriptStruct replacement.
_data is one byte longer to make sure strings in bytecode are properly terminated