wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::db::Wdb2Header Struct Reference

The 48-byte WDB2 header (wowdev.wiki/DB2). More...

#include <wowlib/db/wdb2.hpp>

Public Attributes

std::uint32_t magic = Wdb2Magic
 "WDB2".
std::uint32_t recordCount = 0
 Records in the record block.
std::uint32_t fieldCount = 0
 Expanded on-disk field slots per record.
std::uint32_t recordSize = 0
 Record stride in bytes.
std::uint32_t stringBlockSize = 0
 String block bytes after the records.
std::uint32_t tableHash = 0
 SStrHash of the uppercased table name.
std::uint32_t build = 0
 Client build the file was generated for.
std::uint32_t timestampLastWritten = 0
 Unix timestamp, often 0.
std::uint32_t minId = 0
 Lowest record id; 0 when no index block.
std::uint32_t maxId = 0
 Highest record id; non-zero engages the index block.
std::uint32_t locale = 0
 Locale mask of the generating client.
std::uint32_t copyTableSize = 0
 Trailing copy-table bytes (id pairs).

Detailed Description

The 48-byte WDB2 header (wowdev.wiki/DB2).

Definition at line 30 of file wdb2.hpp.

Member Data Documentation

◆ build

std::uint32_t wowlib::db::Wdb2Header::build = 0

Client build the file was generated for.

Definition at line 37 of file wdb2.hpp.

Referenced by wowlib::db::writeWdb2().

◆ copyTableSize

std::uint32_t wowlib::db::Wdb2Header::copyTableSize = 0

Trailing copy-table bytes (id pairs).

Definition at line 42 of file wdb2.hpp.

Referenced by wowlib::db::readWdb2(), and wowlib::db::writeWdb2().

◆ fieldCount

std::uint32_t wowlib::db::Wdb2Header::fieldCount = 0

Expanded on-disk field slots per record.

Definition at line 33 of file wdb2.hpp.

Referenced by wowlib::db::readWdb2(), and wowlib::db::writeWdb2().

◆ locale

std::uint32_t wowlib::db::Wdb2Header::locale = 0

Locale mask of the generating client.

Definition at line 41 of file wdb2.hpp.

◆ magic

std::uint32_t wowlib::db::Wdb2Header::magic = Wdb2Magic

"WDB2".

Definition at line 31 of file wdb2.hpp.

Referenced by wowlib::db::readWdb2(), and wowlib::db::writeWdb2().

◆ maxId

std::uint32_t wowlib::db::Wdb2Header::maxId = 0

Highest record id; non-zero engages the index block.

Definition at line 40 of file wdb2.hpp.

Referenced by wowlib::db::readWdb2().

◆ minId

std::uint32_t wowlib::db::Wdb2Header::minId = 0

Lowest record id; 0 when no index block.

Definition at line 39 of file wdb2.hpp.

Referenced by wowlib::db::readWdb2().

◆ recordCount

std::uint32_t wowlib::db::Wdb2Header::recordCount = 0

Records in the record block.

Definition at line 32 of file wdb2.hpp.

Referenced by wowlib::db::readWdb2(), and wowlib::db::writeWdb2().

◆ recordSize

std::uint32_t wowlib::db::Wdb2Header::recordSize = 0

Record stride in bytes.

Definition at line 34 of file wdb2.hpp.

Referenced by wowlib::db::readWdb2(), and wowlib::db::writeWdb2().

◆ stringBlockSize

std::uint32_t wowlib::db::Wdb2Header::stringBlockSize = 0

String block bytes after the records.

Definition at line 35 of file wdb2.hpp.

Referenced by wowlib::db::readWdb2(), and wowlib::db::writeWdb2().

◆ tableHash

std::uint32_t wowlib::db::Wdb2Header::tableHash = 0

SStrHash of the uppercased table name.

Definition at line 36 of file wdb2.hpp.

◆ timestampLastWritten

std::uint32_t wowlib::db::Wdb2Header::timestampLastWritten = 0

Unix timestamp, often 0.

Definition at line 38 of file wdb2.hpp.


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