Parse chunk data on demand

This commit is contained in:
Matthias Schiffer 2015-02-01 04:14:42 +01:00
parent fc1fc8fbbc
commit 8a8a41a800
14 changed files with 74 additions and 98 deletions

View file

@ -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);