470 std::vector<uint16_t> uncompressed;
473 const uint32_t* compressedSizes =
reinterpret_cast<const uint32_t*
>(src);
474 src +=
sizeof(uint32_t)*numChunks;
477 uint32_t sizeWritten = 0;
478 for (uint32_t j=0;j<numChunks;j++)
480 Huffman::Decode(reinterpret_cast<const unsigned char*>(src), compressedSizes[j], uncompressed);
482 memcpy(dest, uncompressed.data(), uncompressed.size()*
sizeof(uint16_t));
484 sizeWritten += uncompressed.size()*
sizeof(uint16_t);
485 dest += uncompressed.size()*
sizeof(uint16_t);
486 src += compressedSizes[j];
int64_t Decode(const uint8_t *bufin, size_t bufinlen, std::vector< uint16_t > &pbufout)