Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::PS4::MemoryPageChunk Class Reference

Used by allocators for memory chunk tracking. More...

Public Member Functions

 MemoryPageChunk () noexcept
 
 MemoryPageChunk (void *pBuffer, uintptr_t uStartPage, uintptr_t uPageCount, eMemoryBus uMemoryBus) noexcept
 
bool operator== (const MemoryPageChunk &rInput) const noexcept
 

Public Attributes

void * m_pBuffer
 Pointer to the memory page.
 
uintptr_t m_uStartPage
 Starting page index, if UINTPTR_MAX, it's not valid.
 
uintptr_t m_PageCount
 Number of contiguous pages.
 
eMemoryBus m_uMemoryBus
 Onion or Garlic memory.
 

Detailed Description

Used by allocators for memory chunk tracking.


For each chunk allocated, one of these records is used to track it and remember to which memory allocator it belongs to.

Constructor & Destructor Documentation

◆ MemoryPageChunk() [1/2]

Burger::PS4::MemoryPageChunk::MemoryPageChunk ( )
inlinenoexcept

◆ MemoryPageChunk() [2/2]

Burger::PS4::MemoryPageChunk::MemoryPageChunk ( void * pBuffer,
uintptr_t uStartPage,
uintptr_t uPageCount,
eMemoryBus uMemoryBus )
inlinenoexcept

Member Function Documentation

◆ operator==()

bool Burger::PS4::MemoryPageChunk::operator== ( const MemoryPageChunk & rInput) const
inlinenoexcept

Member Data Documentation

◆ m_PageCount

uintptr_t Burger::PS4::MemoryPageChunk::m_PageCount

Number of contiguous pages.

◆ m_pBuffer

void* Burger::PS4::MemoryPageChunk::m_pBuffer

Pointer to the memory page.

◆ m_uMemoryBus

eMemoryBus Burger::PS4::MemoryPageChunk::m_uMemoryBus

Onion or Garlic memory.

◆ m_uStartPage

uintptr_t Burger::PS4::MemoryPageChunk::m_uStartPage

Starting page index, if UINTPTR_MAX, it's not valid.