|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
The WDB2 codec (declarations in wdb2.hpp). More...
#include <wowlib/db/wdb2.hpp>#include <cstring>#include <format>#include <wowlib/db/codec_detail.hpp>Go to the source code of this file.
Namespaces | |
| namespace | wowlib |
| namespace | wowlib::db |
Functions | |
| Result< void > | wowlib::db::readWdb2 (const TableInfo &info, std::span< const std::byte > data, RecordSink &sink, TableState &state) |
| Decode a WDB2 image: header, optional id-index block, fixed-stride records, string block, optional trailing copy table (index/copy preserved verbatim). | |
| Result< FileBuffer > | wowlib::db::writeWdb2 (const TableInfo &info, const RecordSource &source, const TableState &state) |
| Encode a WDB2 image; header identity and the verbatim index/copy blocks are re-emitted. | |
The WDB2 codec (declarations in wdb2.hpp).
Shares the fixed-stride inline field decode/encode with WDBC (codec_detail.hpp) and preserves the id-index and copy-table blocks verbatim.
Definition in file wdb2.cpp.