mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-12 09:59:05 +02:00
Parse chunk data on demand
This commit is contained in:
parent
fc1fc8fbbc
commit
8a8a41a800
14 changed files with 74 additions and 98 deletions
|
@ -82,7 +82,6 @@ Chunk::Chunk(uint8_t *buffer, size_t buflen) {
|
|||
if (format != 2)
|
||||
throw std::invalid_argument("unknown chunk format");
|
||||
|
||||
UniqueCPtr<uint8_t[]> data;
|
||||
size_t len;
|
||||
std::tie(data, len) = inflateChunk(buffer+5, size-1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue