/libnbtpp2

A C++14 library for creating, opening and modifying NBT files - MIRROR

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

nbtpp2 pipeline status

A C++14 library for creating, opening and modifying NBT files

Usage

#include <nbtpp2/nbt_file.hpp>
#include <iostream>

using namespace nbtpp2;

int main() {
    auto file = NbtFile("bigtest.nbt", Endianness::Big);
    std::cout << file.get_root_tag_compound()["intTest"]->as<tags::TagInt>().value
              << std::endl;
}

Compiler compatibility

Compilation has been tested on GCC and Clang. Support for other compilers is not guaranteed (though merge requests are welcome).
At the time of writing nbtpp2 compiles on MSVC (I used vcpkg for compiling with zlib) but the tests do not. Perhaps you could make them compile with some less aggressive compiler flags.

Documentation