ReXGlue SDK
Loading...
Searching...
No Matches
rex::kernel::ITitleWorkspace Class Referenceabstract

#include <rex/kernel/guest_allocator.h>

Inheritance diagram for rex::kernel::ITitleWorkspace:
[legend]

Public Member Functions

virtual Result< u32 > Allocate (u32 size, bool zero)=0
virtual void Free (u32 address)=0

Detailed Description

Interface XAM uses to allocate from the title workspace.

Member Function Documentation

◆ Allocate()

virtual Result< u32 > rex::kernel::ITitleWorkspace::Allocate ( u32 size,
bool zero )
nodiscardpure virtual

Allocates bytes from the workspace.

Parameters
zeroTrue to zero the bytes.
Returns
The guest address, or an error when the workspace is exhausted.

Implemented in rex::kernel::WorkspaceHeap.

◆ Free()

virtual void rex::kernel::ITitleWorkspace::Free ( u32 address)
pure virtual

Frees an address from Allocate. An address outside the workspace is logged and ignored.

Parameters
addressThe guest address, 0 for none.

Implemented in rex::kernel::WorkspaceHeap.


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