ScummVM API documentation
asCWriter Class Reference

Classes

struct  SListAdjuster
 
struct  SObjProp
 

Public Member Functions

 asCWriter (asCModule *module, asIBinaryStream *stream, asCScriptEngine *engine, bool stripDebugInfo)
 
int Write ()
 

Protected Member Functions

int Error (const char *msg)
 
int WriteData (const void *data, asUINT size)
 
void WriteString (asCString *str)
 
void WriteFunction (asCScriptFunction *func)
 
void WriteFunctionSignature (asCScriptFunction *func)
 
void WriteGlobalProperty (asCGlobalProperty *prop)
 
void WriteObjectProperty (asCObjectProperty *prop)
 
void WriteDataType (const asCDataType *dt)
 
void WriteTypeInfo (asCTypeInfo *ot)
 
void WriteTypeDeclaration (asCTypeInfo *ot, int phase)
 
void WriteByteCode (asCScriptFunction *func)
 
void WriteEncodedInt64 (asINT64 i)
 
int FindTypeInfoIdx (asCTypeInfo *ti)
 
int FindTypeIdIdx (int typeId)
 
int FindFunctionIndex (asCScriptFunction *func)
 
int FindGlobalPropPtrIndex (void *)
 
int FindStringConstantIndex (void *str)
 
int FindObjectPropIndex (short offset, int typeId, asDWORD *bc)
 
void CalculateAdjustmentByPos (asCScriptFunction *func)
 
int AdjustStackPosition (int pos)
 
int AdjustProgramPosition (int pos)
 
int AdjustGetOffset (int offset, asCScriptFunction *func, asDWORD programPos)
 
void WriteUsedTypeIds ()
 
void WriteUsedFunctions ()
 
void WriteUsedGlobalProps ()
 
void WriteUsedStringConstants ()
 
void WriteUsedObjectProps ()
 

Protected Attributes

asCModulemodule
 
asIBinaryStreamstream
 
asCScriptEngineengine
 
bool stripDebugInfo
 
bool error
 
asUINT bytesWritten
 
asCArray< int > usedTypeIds
 
asCArray< asCTypeInfo * > usedTypes
 
asCArray< asCScriptFunction * > usedFunctions
 
asCArray< void * > usedGlobalProperties
 
asCArray< void * > usedStringConstants
 
asCMap< void *, int > stringToIndexMap
 
asCArray< asCScriptFunction * > savedFunctions
 
asCArray< asCDataTypesavedDataTypes
 
asCArray< asCStringsavedStrings
 
asCMap< asCString, int > stringToIdMap
 
asCArray< int > adjustStackByPos
 
asCArray< int > adjustNegativeStackByPos
 
asCArray< int > bytecodeNbrByPos
 
asCArray< SObjPropusedObjectProperties
 
asCArray< SListAdjuster * > listAdjusters
 

The documentation for this class was generated from the following file: