载入中...
搜索中...
未找到
src
engine
common
Data.h
浏览该文件的文档.
1
#pragma once
2
3
#include <cstddef>
4
5
namespace
eve
{
6
8
class
Data
{
9
public
:
13
virtual
~Data
() {}
14
18
virtual
Data
*
clone
()
const
= 0;
19
24
virtual
void
*
getData
()
const
= 0;
25
29
virtual
size_t
getSize
()
const
= 0;
30
};
31
32
}
// namespace eve
eve::Data
Data public API.
Definition
Data.h:8
eve::Data::getSize
virtual size_t getSize() const =0
Gets the size of the Data in bytes.
eve::Data::getData
virtual void * getData() const =0
Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.
eve::Data::~Data
virtual ~Data()
Destructor.
Definition
Data.h:13
eve::Data::clone
virtual Data * clone() const =0
Creates a duplicate of Data derived class instance.
eve
Build metadata (engine git commit, build time, third-party version).
Definition
Build.cpp:16