载入中...
搜索中...
未找到
CompressedData.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "Compressor.h"
6#include "common/Data.h"
7
8namespace eve {
9namespace data {
10
15public:
19 CompressedData(std::string format, char *cdata, size_t compressedsize, size_t rawsize, bool own = true);
23 virtual ~CompressedData();
24
28 std::string getFormat() const;
29
34 size_t getDecompressedSize() const;
35
36 // Implements Data.
38 CompressedData *clone() const override;
40 void *getData() const override;
42 size_t getSize() const override;
43
44private:
45 std::string format;
46
47 char *data;
48 size_t dataSize;
49
50 size_t originalSize;
51
52}; // CompressedData
53
54} // namespace data
55} // namespace eve
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
std::int32_t c
Data public API.
Definition Data.h:8
Stores byte data compressed via DataModule::compress.
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16