NBT: Allow parsing from compressed data
This commit is contained in:
parent
935d29a30d
commit
35f91c17a1
|
@ -164,6 +164,11 @@ namespace NBT
|
|||
{
|
||||
}
|
||||
|
||||
CompoundTag::CompoundTag(const void* data, size_t length)
|
||||
: CompoundTag(nbt_parse_compressed(data, length))
|
||||
{
|
||||
}
|
||||
|
||||
CompoundTag::~CompoundTag()
|
||||
{
|
||||
nbt_free(m_node);
|
||||
|
|
|
@ -136,7 +136,11 @@ namespace NBT
|
|||
public:
|
||||
CompoundTag(nbt_node* node) : Tag(node) {}
|
||||
|
||||
CompoundTag(const char *filename);
|
||||
CompoundTag(const char* filename);
|
||||
|
||||
// Read a compound tag from compressed data
|
||||
CompoundTag(const void* data, size_t length);
|
||||
|
||||
~CompoundTag();
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Reference in New Issue