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

In-memory byte buffer implementing eve::Data (ref-counted). 更多...

#include <ByteData.h>

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

Public 成员函数

 ByteData (size_t size)
 Allocates an uninitialized buffer of the given size.
 
 ByteData (const void *d, size_t size)
 Copies size bytes from d into a new buffer.
 
 ByteData (void *d, size_t size, bool own)
 Wraps d; when own is true the buffer is freed on destruction.
 
 ByteData (const ByteData &d)
 Deep-copies another buffer.
 
virtual ~ByteData ()
 
ByteDataclone () const override
 Implements eve::Data.
 
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
 

详细描述

In-memory byte buffer implementing eve::Data (ref-counted).

在文件 ByteData.h11 行定义.

构造及析构函数说明

◆ ByteData() [1/4]

eve::data::ByteData::ByteData ( size_t  size)

Allocates an uninitialized buffer of the given size.

在文件 ByteData.cpp9 行定义.

◆ ByteData() [2/4]

eve::data::ByteData::ByteData ( const void *  d,
size_t  size 
)

Copies size bytes from d into a new buffer.

在文件 ByteData.cpp14 行定义.

引用了 d.

◆ ByteData() [3/4]

eve::data::ByteData::ByteData ( void *  d,
size_t  size,
bool  own 
)

Wraps d; when own is true the buffer is freed on destruction.

在文件 ByteData.cpp19 行定义.

引用了 d.

◆ ByteData() [4/4]

eve::data::ByteData::ByteData ( const ByteData d)

Deep-copies another buffer.

在文件 ByteData.cpp28 行定义.

引用了 d.

◆ ~ByteData()

eve::data::ByteData::~ByteData ( )
virtual

在文件 ByteData.cpp33 行定义.

成员函数说明

◆ clone()

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

Implements eve::Data.

实现了 eve::Data.

在文件 ByteData.cpp45 行定义.

◆ getData()

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

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

实现了 eve::Data.

在文件 ByteData.cpp47 行定义.

被这些函数引用 eve::voxel::VoxelWorld::loadWorld().

◆ getSize()

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

Gets the size of the Data in bytes.

实现了 eve::Data.

在文件 ByteData.cpp49 行定义.

被这些函数引用 eve::voxel::VoxelWorld::loadWorld().


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