xoreos
0.0.5
|
A GFF4 header. More...
Public Member Functions | |
void | read (Common::SeekableReadStream &gff4, uint32 version) |
bool | isBigEndian () const |
Public Attributes | |
uint32 | platformID |
ID of the platform this GFF4 is for. More... | |
uint32 | type |
The specific type this GFF4 describes. More... | |
uint32 | typeVersion |
The version of the specific type this GFF4 describes. More... | |
uint32 | structCount |
Number of struct templates in this GFF4. More... | |
uint32 | stringCount |
Number of shared strings (V4.1 only). More... | |
uint32 | stringOffset |
Offset to shared strings (V4.1 only). More... | |
uint32 | dataOffset |
Offset to the data portion. More... | |
bool | hasSharedStrings |
A GFF4 header.
Definition at line 125 of file gff4file.h.
bool Aurora::GFF4File::Header::isBigEndian | ( | ) | const |
Definition at line 74 of file gff4file.cpp.
References Aurora::GFF4File::kPlatformPS3, and Aurora::GFF4File::kPlatformXbox360.
Referenced by Aurora::GFF4File::getNativeEncoding(), Aurora::GFF4File::isBigEndian(), Aurora::GFF4File::loadHeader(), and read().
void Aurora::GFF4File::Header::read | ( | Common::SeekableReadStream & | gff4, |
uint32 | version | ||
) |
Definition at line 48 of file gff4file.cpp.
References dataOffset, hasSharedStrings, isBigEndian(), kVersion41, platformID, Common::SeekableReadStream::pos(), Common::ReadStream::readUint32BE(), Common::SeekableReadStream::seek(), Common::SeekableSubReadStream::seek(), Common::SeekableReadStream::size(), stringCount, stringOffset, structCount, type, and typeVersion.
Referenced by Aurora::GFF4File::loadHeader().
uint32 Aurora::GFF4File::Header::dataOffset |
Offset to the data portion.
Definition at line 132 of file gff4file.h.
Referenced by Aurora::GFF4File::getDataOffset(), Aurora::GFF4File::loadStructs(), and read().
bool Aurora::GFF4File::Header::hasSharedStrings |
Definition at line 134 of file gff4file.h.
Referenced by Aurora::GFF4File::hasSharedStrings(), Aurora::GFF4File::loadStrings(), and read().
uint32 Aurora::GFF4File::Header::platformID |
ID of the platform this GFF4 is for.
Definition at line 126 of file gff4file.h.
Referenced by Aurora::GFF4File::getPlatform(), and read().
uint32 Aurora::GFF4File::Header::stringCount |
Number of shared strings (V4.1 only).
Definition at line 130 of file gff4file.h.
Referenced by Aurora::GFF4File::loadStrings(), and read().
uint32 Aurora::GFF4File::Header::stringOffset |
Offset to shared strings (V4.1 only).
Definition at line 131 of file gff4file.h.
Referenced by Aurora::GFF4File::loadStrings(), and read().
uint32 Aurora::GFF4File::Header::structCount |
Number of struct templates in this GFF4.
Definition at line 129 of file gff4file.h.
Referenced by Aurora::GFF4File::loadHeader(), Aurora::GFF4File::loadStructs(), and read().
uint32 Aurora::GFF4File::Header::type |
The specific type this GFF4 describes.
Definition at line 127 of file gff4file.h.
Referenced by Aurora::GFF4File::getType(), Aurora::GFF4File::loadHeader(), and read().
uint32 Aurora::GFF4File::Header::typeVersion |
The version of the specific type this GFF4 describes.
Definition at line 128 of file gff4file.h.
Referenced by Aurora::GFF4File::getTypeVersion(), and read().