wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
roundtrip_m2.cpp File Reference

The M2 round-trip driver: the assembly read (satellites baked in) followed by write -> parse -> write-again stability compares of the body, the skel blocks and every skin — offset formats carry no byte-perfect promise, so stability replaces the round-trip tests' reflection diff. More...

#include <cstddef>
#include <format>
#include <map>
#include <span>
#include <string>
#include <type_traits>
#include <wowlib/audit/detail.hpp>
#include <wowlib/formats/m2/m2.hpp>
#include <wowlib/formats/m2/offset_block.hpp>
Include dependency graph for roundtrip_m2.cpp:

Go to the source code of this file.

Namespaces

namespace  wowlib
namespace  wowlib::audit
namespace  wowlib::audit::detail

Detailed Description

The M2 round-trip driver: the assembly read (satellites baked in) followed by write -> parse -> write-again stability compares of the body, the skel blocks and every skin — offset formats carry no byte-perfect promise, so stability replaces the round-trip tests' reflection diff.

The resplit logic (external sequences routed into per-index .anim buffers on write and resolved back on read) is ported from tests/integration/test_m2_roundtrip.cpp.

Definition in file roundtrip_m2.cpp.