载入中...
搜索中...
未找到
eve::data::LZ4Compressor类 参考
类 eve::data::LZ4Compressor 继承关系图:
Public 成员函数 | |
| char * | compress (std::string format, const char *data, size_t dataSize, int level, size_t &compressedSize) override |
| Compresses input data, and returns the compressed result. | |
| char * | decompress (std::string format, const char *data, size_t dataSize, size_t &decompressedSize) override |
| Decompresses compressed data, and returns the decompressed result. | |
| bool | isSupported (std::string format) const override |
| Gets whether a specific format is supported by this backend. | |
Public 成员函数 继承自 eve::data::Compressor | |
| virtual | ~Compressor () |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 eve::data::Compressor | |
| static Compressor * | getCompressor (std::string format) |
| Gets a Compressor that can compress and decompress a specific format. Returns null if there are no supported compressors for the given format. Available formats are: | |
Protected 成员函数 继承自 eve::data::Compressor | |
| Compressor () | |
详细描述
在文件 Compressor.cpp 第 17 行定义.
成员函数说明
◆ compress()
|
inlineoverridevirtual |
Compresses input data, and returns the compressed result.
- 参数
-
[in] format The format to compress to. [in] data The input (uncompressed) data. [in] dataSize The size in bytes of the input data. [in] level The amount of compression to apply (between 0 and 9.) A value of -1 indicates the default amount of compression. Specific formats may not use every level. [out] compressedSize The size in bytes of the compressed result.
- 返回
- The newly compressed data (allocated with new[]).
在文件 Compressor.cpp 第 21 行定义.
引用了 data.
◆ decompress()
|
inlineoverridevirtual |
Decompresses compressed data, and returns the decompressed result.
- 参数
-
[in] format The format the compressed data is in. [in] data The input (compressed) data. [in] dataSize The size in bytes of the compressed data. [in,out] decompressedSize On input, the size in bytes of the original uncompressed data, or 0 if unknown. On return, the size in bytes of the decompressed data.
- 返回
- The decompressed data (allocated with new[]).
在文件 Compressor.cpp 第 84 行定义.
引用了 data.
◆ isSupported()
|
inlineoverridevirtual |
Gets whether a specific format is supported by this backend.
在文件 Compressor.cpp 第 142 行定义.
该类的文档由以下文件生成:
- src/modules/data/Compressor.cpp
Public 成员函数 继承自