A basic memory space with default implementation. More...
Public Member Functions | |
DefaultMemorySpace (unsigned long long spaceSize) noexcept | |
virtual | ~DefaultMemorySpace () |
virtual char * | getBasePtr () const override |
virtual char * | getOffsetPtr (unsigned long long offset) const override |
Public Member Functions inherited from nkMemory::MemorySpace< char * > | |
virtual | ~MemorySpace ()=default |
virtual char * | getBasePtr () const=0 |
A basic memory space with default implementation.
It can be seen as a binary buffer in which memory addressing is done. Allocation is done through a straightforward new char [] to accommodate the space size requested.
|
noexcept |
Constructor.
spaceSize | The size needed for the memory space, in bytes. |
|
virtual |
Destructor.
|
overridevirtual |
See MemorySpace::getBasePtr() for more details.
|
overridevirtual |
See MemorySpace::getOffsetPtr() for more details.
Implements nkMemory::MemorySpace< char * >.