IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::AllocResult Struct Reference

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.

Detailed Description

The result of an allocation from an ice::Allocator object.

Member Function Documentation

◆ operator ice::Memory()

ice::AllocResult::operator ice::Memory ( ) const
constexprnoexcept

Utility conversion to a Memory object.

Member Data Documentation

◆ alignment

ice::ualign ice::AllocResult::alignment

The actual alignment of this allocation.

Can never be smaller of what was requested.

◆ memory

void* ice::AllocResult::memory

A pointer holding the address of the allocated memory block.

◆ size

ice::usize ice::AllocResult::size

The final size of the allocated block.

Can never be smaller of what was requested.


The documentation for this struct was generated from the following file: