19 throw eve::Exception(
"Offset and size of Data View must fit within the original Data's size.");
43 return (uint8_t *) data->
getData() + offset;
virtual void * getData() const =0
Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.
EVENGINE_API_FOUNDATION public API.
Contains a reference to a subsection of an existing Data object.
DataView(Data *data, size_t offset, size_t size)
Data view.
DataView * clone() const override
Deep copy. @ownership Caller deletes.
size_t getSize() const override
Returns the size.
virtual ~DataView()
Data view.
void * getData() const override
Returns the data.
Build metadata (engine git commit, build time, third-party version).