42 #include "as_scriptengine.h" 43 #include "as_context.h" 52 int Read(
bool *wasDebugInfoStripped);
62 int Error(
const char *msg);
66 int ReadData(
void *data, asUINT size);
68 asCScriptFunction *ReadFunction(
bool &isNew,
bool addToModule =
true,
bool addToEngine =
true,
bool addToGC =
true,
bool *isExternal = 0);
70 void ReadGlobalProperty();
74 void ReadTypeDeclaration(
asCTypeInfo *ot,
int phase,
bool *isExternal = 0);
76 asWORD ReadEncodedUInt16();
77 asUINT ReadEncodedUInt();
79 asQWORD ReadEncodedUInt64();
80 asUINT SanityCheck(asUINT val, asUINT max);
81 int SanityCheck(
int val, asUINT max);
83 void ReadUsedTypeIds();
84 void ReadUsedFunctions();
85 void ReadUsedGlobalProps();
86 void ReadUsedStringConstants();
87 void ReadUsedObjectProps();
90 int FindTypeId(
int idx);
91 short FindObjectPropOffset(asWORD index);
97 int AdjustStackPosition(
int pos);
128 void AdjustAllocMem();
129 int AdjustOffset(
int offset);
130 void SetRepeatCount(asUINT rc);
131 void SetNextType(
int typeId);
146 asUINT lastAdjustedOffset;
153 #ifndef AS_NO_COMPILER 169 int Error(
const char *msg);
171 int WriteData(
const void *data, asUINT size);
180 void WriteTypeDeclaration(
asCTypeInfo *ot,
int phase);
182 void WriteEncodedInt64(asINT64 i);
186 int FindTypeIdIdx(
int typeId);
188 int FindGlobalPropPtrIndex(
void *);
189 int FindStringConstantIndex(
void *str);
190 int FindObjectPropIndex(
short offset,
int typeId, asDWORD *bc);
193 int AdjustStackPosition(
int pos);
194 int AdjustProgramPosition(
int pos);
198 void WriteUsedTypeIds();
199 void WriteUsedFunctions();
200 void WriteUsedGlobalProps();
201 void WriteUsedStringConstants();
202 void WriteUsedObjectProps();
229 int AdjustOffset(
int offset,
asCObjectType *listPatternType);
230 void SetRepeatCount(asUINT rc);
231 void SetNextType(
int typeId);
254 #endif // AS_RESTORE_H Definition: as_module.h:93
Definition: as_restore.h:220
Definition: as_typeinfo.h:64
Definition: as_restore.h:155
Definition: as_restore.h:48
Definition: as_scriptfunction.h:146
Definition: as_objecttype.h:100
Definition: as_property.h:53
Definition: as_restore.h:116
Definition: as_scriptfunction.h:74
Definition: as_datatype.h:60
void NORETURN_PRE error(MSVC_PRINTF const char *s,...) GCC_PRINTF(1
Definition: as_property.h:68
Definition: angelscript.h:1145
Definition: as_restore.h:227
Definition: as_restore.h:133
Definition: as_scriptengine.h:64
Definition: as_restore.h:233
Definition: as_string.h:41
Definition: as_restore.h:126