18#ifndef AGXDATA_BINARYDATA_H
19#define AGXDATA_BINARYDATA_H
91 const Byte* ptr()
const;
133 template <
typename T>
136 template <
typename T>
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_DECLARE_VECTOR_TYPES(type)
BinaryData(Byte *data, size_t size, DataAllocationType allocationType)
Create a binary data that is a handle to an externally allocated memory area.
static BinaryData * copy(const Byte *data, size_t size)
Create a BinaryData that contains a copy of the given memory area.
void setApparentSize(size_t size)
Change the size that will be returned by calls to 'size()'.
static BinaryData * readFromFile(const agx::String &path)
Load binary data from a file.
BinaryData(Byte *data, size_t size, agx::Referenced *reference)
ByteStream getByteStream()
BinaryData(size_t size, size_t alignment)
Utility class for parsing/writing a byte stream.
Base class providing referencing counted objects.
Smart pointer for handling referenced counted objects.
Contains classes for low level data storage for AGX.