mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-25 00:43:51 +01:00
23 lines
375 B
C++
23 lines
375 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
#include <string>
|
|
#include "types.h"
|
|
|
|
class ZstdDecompressor
|
|
{
|
|
public:
|
|
class DecompressError {};
|
|
|
|
ZstdDecompressor();
|
|
~ZstdDecompressor();
|
|
void setData(const u8 *data, size_t size, size_t seekPos);
|
|
size_t seekPos() const;
|
|
ustring decompress();
|
|
|
|
private:
|
|
void *m_stream; // ZSTD_DStream
|
|
const u8 *m_data;
|
|
size_t m_seekPos, m_size;
|
|
};
|