ljfa-ag / libnbtplusplus

A C++ library for Minecraft's file format NBT
GNU Lesser General Public License v3.0
78 stars 25 forks source link

The ability to read and write gzip-compressed tags #6

Closed ljfa-ag closed 9 years ago

ljfa-ag commented 9 years ago

For now libraries like Boost::Iostreams or Gzstream can be used for that purpose.

ljfa-ag commented 9 years ago

Not sure if that really falls into this library's scope...I think letting external libraries handle that part is the best option

peterix commented 9 years ago

Yes... I used a tiny wrapper based on just zlib for this.

See: https://github.com/MultiMC/MultiMC5/blob/develop/logic/GZip.cpp

Writing would be about as long too.

ljfa-ag commented 9 years ago

Okay I see. But I guess it can be useful for other things as well.

ljfa-ag commented 9 years ago

That can be considered done now, but maybe there should be some more convenience functions for that