nw::decompress
-
ByteArray nw::decompress(std::span<const uint8_t> span, const char *magic)
Decompress a NWN:EE compressed buffer.
Note
Doesn’t support Zstd dictionaries, but the game doesn’t either.. yet. Supporting that will likely lead to API change.
- Parameters:
span – Compressed data
magic – Magic 4 byte sequence, i.e. “NSYC”
- Returns:
ByteArray Uncompressed data, empty on error.