spockbotmc / cpp-nbt Goto Github PK
View Code? Open in Web Editor NEWC++23 NBT serializer
License: zlib License
C++23 NBT serializer
License: zlib License
Right now cpp-nbt is only suitable for well-formed data, and similarly assumes that the user doesn't try to serialize a malformed NBT Tag.
Consider adding error handling to allow for recovering from malformed data and/or tags.
I found this library helpful and neat, but I am using nbt as a part of another binary format, so I hope to encode and decode from memory buffer instead of file streams. Please tell me how can I encode nbt to memory buffer, and decode a nbt from memory.
If this function is not implemented yet, I am willing to do it myself and open a pull request.
Common use-case for NBT is going to and from SNBT, need to support that serialization target
pprint.hpp is a cool project that I'm barely using here, and there's no real reason to have another header that's twice the size of cpp-nbt when I could write a little stub of a printer to do the same job.
i tried to compile with the header file, but it gives a ton of errors (over 750 lines)
errors.txt
Im compiling with MinGW G++ 11.1.0.
Hello! I'm tryna use your header file for a project, and the compiler spits 1000000 errors at me. I have simply used
#include "nbt.hpp"
in my code to check if it work.
A constant string is copied in every tag. It might be a large cost in memory when reading a mca file.
https://github.com/SpockBotMC/cpp-nbt/blob/master/nbt/nbt.hpp#L73
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.