]> git.localhorst.tv Git - l2e.git/blob - ObjectFile.cpp
4cb886223c80150216cdad339bdbc59312bcbafe
[l2e.git] / ObjectFile.cpp
1 /*
2  * ObjectFile.cpp
3  *
4  *  Created on: Sep 15, 2012
5  *      Author: holy
6  */
7
8 #include "ObjectFile.h"
9
10 namespace loader {
11
12 ObjectFileHeader::ObjectFileHeader()
13 : versionId(FORMAT_ID)
14 , exportsBegin(0)
15 , exportsEnd(0)
16 , externalsBegin(0)
17 , externalsEnd(0)
18 , exportStringsBegin(0)
19 , exportStringsEnd(0)
20 , externalStringsBegin(0)
21 , externalStringsEnd(0)
22 , imagesBegin(0)
23 , imagesEnd(0)
24 , objectsBegin(0)
25 , objectsEnd(0) {
26         ident[0] = 'L';
27         ident[1] = '2';
28         ident[2] = 'E';
29         ident[3] = '\n';
30 }
31
32 LoadedObjectFile::LoadedObjectFile()
33 : allocPtr(0)
34 , fileHeader(0)
35 , typeOffsetsBegin(0)
36 , typeOffsetsEnd(0)
37 , exportsBegin(0)
38 , exportsEnd(0)
39 , externalsBegin(0)
40 , externalsEnd(0)
41 , exportStringsBegin(0)
42 , exportStringsEnd(0)
43 , externalStringsBegin(0)
44 , externalStringsEnd(0)
45 , imagesBegin(0)
46 , imagesEnd(0)
47 , objectsBegin(0)
48 , objectsEnd(0)
49 , surfaces(0)
50 , surfaceCount(0) {
51
52 }
53
54 }