载入中...
搜索中...
未找到
eve::data::CompressedData类 参考

Stores byte data compressed via DataModule::compress. 更多...

#include <CompressedData.h>

类 eve::data::CompressedData 继承关系图:
eve::Data eve::Object

Public 成员函数

 CompressedData (std::string format, char *cdata, size_t compressedsize, size_t rawsize, bool own=true)
 Constructor just stores already-compressed data in the object.
 
 CompressedData (const CompressedData &c)
 
virtual ~CompressedData ()
 
std::string getFormat () const
 Gets the format that was used to compress the data.
 
size_t getDecompressedSize () const
 Gets the original (uncompressed) size of the compressed data. May return 0 if the uncompressed size is unknown.
 
CompressedDataclone () const override
 Creates a duplicate of Data derived class instance.
 
void * getData () const override
 Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.
 
size_t getSize () const override
 Gets the size of the Data in bytes.
 
- Public 成员函数 继承自 eve::Data
virtual ~Data ()
 Destructor.
 
- Public 成员函数 继承自 eve::Object
 Object ()
 
void setUpdate (Object *update)
 Update the current object with a replacement. You don't need to care about the reference to the old object since it will be automatically updated in the ref smart pointer.
 

额外继承的成员函数

- Protected 成员函数 继承自 eve::Object
virtual ~Object ()
 
bool isDirty () const
 
ObjectgetUpdate () const
 
void ref ()
 
void unref ()
 
- Protected 属性 继承自 eve::Object
Objectupdate
 
unsigned ref_count = 0
 

详细描述

Stores byte data compressed via DataModule::compress.

在文件 CompressedData.h12 行定义.

构造及析构函数说明

◆ CompressedData() [1/2]

eve::data::CompressedData::CompressedData ( std::string  format,
char *  cdata,
size_t  compressedsize,
size_t  rawsize,
bool  own = true 
)

Constructor just stores already-compressed data in the object.

在文件 CompressedData.cpp9 行定义.

引用了 data.

◆ CompressedData() [2/2]

eve::data::CompressedData::CompressedData ( const CompressedData c)

在文件 CompressedData.cpp24 行定义.

引用了 c , 以及 data.

◆ ~CompressedData()

eve::data::CompressedData::~CompressedData ( )
virtual

在文件 CompressedData.cpp35 行定义.

成员函数说明

◆ clone()

CompressedData * eve::data::CompressedData::clone ( ) const
overridevirtual

Creates a duplicate of Data derived class instance.

实现了 eve::Data.

在文件 CompressedData.cpp37 行定义.

◆ getData()

void * eve::data::CompressedData::getData ( ) const
overridevirtual

Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.

实现了 eve::Data.

在文件 CompressedData.cpp43 行定义.

◆ getDecompressedSize()

size_t eve::data::CompressedData::getDecompressedSize ( ) const

Gets the original (uncompressed) size of the compressed data. May return 0 if the uncompressed size is unknown.

在文件 CompressedData.cpp41 行定义.

◆ getFormat()

std::string eve::data::CompressedData::getFormat ( ) const

Gets the format that was used to compress the data.

在文件 CompressedData.cpp39 行定义.

◆ getSize()

size_t eve::data::CompressedData::getSize ( ) const
overridevirtual

Gets the size of the Data in bytes.

实现了 eve::Data.

在文件 CompressedData.cpp45 行定义.


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