载入中...
搜索中...
未找到
eve::data::LZ4Compressor类 参考
类 eve::data::LZ4Compressor 继承关系图:
eve::data::Compressor

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 CompressorgetCompressor (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.cpp17 行定义.

成员函数说明

◆ compress()

char * eve::data::LZ4Compressor::compress ( std::string  format,
const char *  data,
size_t  dataSize,
int  level,
size_t &  compressedSize 
)
inlineoverridevirtual

Compresses input data, and returns the compressed result.

参数
[in]formatThe format to compress to.
[in]dataThe input (uncompressed) data.
[in]dataSizeThe size in bytes of the input data.
[in]levelThe 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]compressedSizeThe size in bytes of the compressed result.
返回
The newly compressed data (allocated with new[]).

实现了 eve::data::Compressor.

在文件 Compressor.cpp21 行定义.

引用了 data.

◆ decompress()

char * eve::data::LZ4Compressor::decompress ( std::string  format,
const char *  data,
size_t  dataSize,
size_t &  decompressedSize 
)
inlineoverridevirtual

Decompresses compressed data, and returns the decompressed result.

参数
[in]formatThe format the compressed data is in.
[in]dataThe input (compressed) data.
[in]dataSizeThe size in bytes of the compressed data.
[in,out]decompressedSizeOn 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[]).

实现了 eve::data::Compressor.

在文件 Compressor.cpp84 行定义.

引用了 data.

◆ isSupported()

bool eve::data::LZ4Compressor::isSupported ( std::string  format) const
inlineoverridevirtual

Gets whether a specific format is supported by this backend.

实现了 eve::data::Compressor.

在文件 Compressor.cpp142 行定义.


该类的文档由以下文件生成: