|
IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
|
The result of an allocation from an ice::Allocator object. More...
#include <ice/mem.hxx>
Public Member Functions | |
| constexpr | operator ice::Memory () const noexcept |
| Utility conversion to a Memory object. | |
Public Attributes | |
| void * | memory |
| A pointer holding the address of the allocated memory block. | |
| ice::usize | size |
| The final size of the allocated block. | |
| ice::ualign | alignment |
| The actual alignment of this allocation. | |
The result of an allocation from an ice::Allocator object.
|
constexprnoexcept |
Utility conversion to a Memory object.
| ice::ualign ice::AllocResult::alignment |
The actual alignment of this allocation.
Can never be smaller of what was requested.
| void* ice::AllocResult::memory |
A pointer holding the address of the allocated memory block.
| ice::usize ice::AllocResult::size |
The final size of the allocated block.
Can never be smaller of what was requested.