ScummVM API documentation
asCReader Class Reference

Classes

struct  SListAdjuster
 
struct  SObjProp
 

Public Member Functions

 asCReader (asCModule *module, asIBinaryStream *stream, asCScriptEngine *engine)
 
int Read (bool *wasDebugInfoStripped)
 

Protected Member Functions

int Error (const char *msg)
 
int ReadInner ()
 
int ReadData (void *data, asUINT size)
 
void ReadString (asCString *str)
 
asCScriptFunctionReadFunction (bool &isNew, bool addToModule=true, bool addToEngine=true, bool addToGC=true, bool *isExternal=0)
 
void ReadFunctionSignature (asCScriptFunction *func, asCObjectType **parentClass=0)
 
void ReadGlobalProperty ()
 
void ReadObjectProperty (asCObjectType *ot)
 
void ReadDataType (asCDataType *dt)
 
asCTypeInfoReadTypeInfo ()
 
void ReadTypeDeclaration (asCTypeInfo *ot, int phase, bool *isExternal=0)
 
void ReadByteCode (asCScriptFunction *func)
 
asWORD ReadEncodedUInt16 ()
 
asUINT ReadEncodedUInt ()
 
int ReadEncodedInt ()
 
asQWORD ReadEncodedUInt64 ()
 
asUINT SanityCheck (asUINT val, asUINT max)
 
int SanityCheck (int val, asUINT max)
 
void ReadUsedTypeIds ()
 
void ReadUsedFunctions ()
 
void ReadUsedGlobalProps ()
 
void ReadUsedStringConstants ()
 
void ReadUsedObjectProps ()
 
asCTypeInfoFindType (int idx)
 
int FindTypeId (int idx)
 
short FindObjectPropOffset (asWORD index)
 
asCScriptFunctionFindFunction (int idx)
 
void TranslateFunction (asCScriptFunction *func)
 
void CalculateAdjustmentByPos (asCScriptFunction *func)
 
int AdjustStackPosition (int pos)
 
int AdjustGetOffset (int offset, asCScriptFunction *func, asDWORD programPos)
 
void CalculateStackNeeded (asCScriptFunction *func)
 
asCScriptFunctionGetCalledFunction (asCScriptFunction *func, asDWORD programPos)
 

Protected Attributes

asCModulemodule
 
asIBinaryStreamstream
 
asCScriptEngineengine
 
bool noDebugInfo
 
bool error
 
asUINT bytesRead
 
asCArray< int > usedTypeIds
 
asCArray< asCTypeInfo * > usedTypes
 
asCArray< asCScriptFunction * > usedFunctions
 
asCArray< void * > usedGlobalProperties
 
asCArray< void * > usedStringConstants
 
asCArray< asCScriptFunction * > savedFunctions
 
asCArray< asCDataTypesavedDataTypes
 
asCArray< asCStringsavedStrings
 
asCArray< int > adjustByPos
 
asCArray< int > adjustNegativeStackByPos
 
asCArray< SObjPropusedObjectProperties
 
asCMap< void *, bool > existingShared
 
asCMap< asCScriptFunction *, bool > dontTranslate
 
asCArray< SListAdjuster * > listAdjusters
 

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