Array *Next();
};
+struct Script {
+ unsigned int size;
+
+ char *Text();
+ Script *Next();
+};
+
struct ObjectFileHeader {
/// Has to be "L2E\n"
char ident[4];
unsigned int arraysBegin;
unsigned int arraysEnd;
+ /// File-relative offsets of the script section's begin
+ /// and end respectively.
+ /// Each script is an unsigned int with the length in
+ /// bytes followed by the script text.
+ unsigned int scriptsBegin;
+ unsigned int scriptsEnd;
+
ObjectFileHeader();
/// Check if there are any problems with the file header.
Object *ObjectsEnd();
Array *ArraysBegin();
Array *ArraysEnd();
+ Script *ScriptsBegin();
+ Script *ScriptsEnd();
private:
bool CheckSection(