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

A located, structurally-validated section. More...

#include <wowlib/db/wdc/image.hpp>

Public Attributes

Wdc3SectionHeader header {}
 Synthesized for WDC1.
bool encrypted = false
 tactKeyHash != 0 AND records zeroed.
std::span< const std::byte > records
 Fixed-stride record region (non-sparse), or the variable sparse record region.
std::span< const std::byte > strings
 Section string block (non-sparse).
std::span< const std::byte > idList
 uint32 ids, present when flag 0x04.
std::span< const std::byte > copyTable
 {uint32 newId, uint32 srcId} pairs.
std::span< const std::byte > offsetMap
 {uint32 offset, uint16 size} entries (sparse).
std::span< const std::byte > offsetMapIds
 uint32 ids paired with offsetMap (sparse).
std::span< const std::byte > relationship
 Relationship block (map header + pairs).
std::vector< std::uint32_t > encryptedIds
 WDC4+: the encrypted_status id list.
std::uint32_t stringBase = 0
 Absolute file offset the section's strings start at.

Detailed Description

A located, structurally-validated section.

WDC1 files produce exactly one; the spans of blocks a flavor does not have are empty.

Definition at line 42 of file image.hpp.

Member Data Documentation

◆ copyTable

std::span<const std::byte> wowlib::db::wdc::WdcSection::copyTable

{uint32 newId, uint32 srcId} pairs.

Definition at line 49 of file image.hpp.

◆ encrypted

bool wowlib::db::wdc::WdcSection::encrypted = false

tactKeyHash != 0 AND records zeroed.

Definition at line 44 of file image.hpp.

◆ encryptedIds

std::vector<std::uint32_t> wowlib::db::wdc::WdcSection::encryptedIds

WDC4+: the encrypted_status id list.

Definition at line 53 of file image.hpp.

◆ header

Wdc3SectionHeader wowlib::db::wdc::WdcSection::header {}

Synthesized for WDC1.

Definition at line 43 of file image.hpp.

◆ idList

std::span<const std::byte> wowlib::db::wdc::WdcSection::idList

uint32 ids, present when flag 0x04.

Definition at line 48 of file image.hpp.

◆ offsetMap

std::span<const std::byte> wowlib::db::wdc::WdcSection::offsetMap

{uint32 offset, uint16 size} entries (sparse).

Definition at line 50 of file image.hpp.

◆ offsetMapIds

std::span<const std::byte> wowlib::db::wdc::WdcSection::offsetMapIds

uint32 ids paired with offsetMap (sparse).

Definition at line 51 of file image.hpp.

◆ records

std::span<const std::byte> wowlib::db::wdc::WdcSection::records

Fixed-stride record region (non-sparse), or the variable sparse record region.

Definition at line 45 of file image.hpp.

◆ relationship

std::span<const std::byte> wowlib::db::wdc::WdcSection::relationship

Relationship block (map header + pairs).

Definition at line 52 of file image.hpp.

◆ stringBase

std::uint32_t wowlib::db::wdc::WdcSection::stringBase = 0

Absolute file offset the section's strings start at.

Definition at line 54 of file image.hpp.

◆ strings

std::span<const std::byte> wowlib::db::wdc::WdcSection::strings

Section string block (non-sparse).

Definition at line 47 of file image.hpp.


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