17#ifndef AEONGAMES_BUFFERACCESSOR_H
18#define AEONGAMES_BUFFERACCESSOR_H
47 DLL
void WriteMemory (
size_t aOffset,
size_t aSize,
const void *aData =
nullptr )
const;
52 DLL
void*
Map (
size_t aOffset = 0,
size_t aSize = 0 )
const;
54 DLL
void Unmap()
const;
DLL const MemoryPoolBuffer * GetMemoryPoolBuffer() const
Get the underlying memory pool buffer.
DLL void WriteMemory(size_t aOffset, size_t aSize, const void *aData=nullptr) const
Write data into the buffer region.
DLL BufferAccessor & operator=(const BufferAccessor &)
Copy assignment operator.
DLL size_t GetOffset() const
Get the byte offset of this accessor within the memory pool buffer.
DLL void Unmap() const
Unmap a previously mapped buffer region.
DLL BufferAccessor(const BufferAccessor &)
Copy constructor.
DLL BufferAccessor()
Default constructor.
DLL BufferAccessor(BufferAccessor &&)
Move constructor.
DLL size_t GetSize() const
Get the size of the accessible region.
DLL void * Map(size_t aOffset=0, size_t aSize=0) const
Map the buffer region into host-accessible memory.
Abstract interface for a pool-based buffer allocator.
<- This is here just for the literals