Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::memory::MemoryChunk Struct Reference

A span of memory in the heap, can be allocated or free. Used as a node in a doubly linked list. More...

#include <memorymanagement.h>

Public Attributes

MemoryChunknext
 Pointer to the chunk after this one in the list.
 
MemoryChunkprev
 Pointer to the chunk before this one in the list.
 
bool allocated
 Whether this chunk is in use or can be allocated.
 
size_t size
 The size of this span of memory (not including the MemoryChunk struct itself)
 

Detailed Description

A span of memory in the heap, can be allocated or free. Used as a node in a doubly linked list.

Definition at line 24 of file memorymanagement.h.

Member Data Documentation

◆ allocated

bool MaxOS::memory::MemoryChunk::allocated

Whether this chunk is in use or can be allocated.

Definition at line 29 of file memorymanagement.h.

Referenced by MaxOS::memory::MemoryManager::MemoryManager().

◆ next

MemoryChunk* MaxOS::memory::MemoryChunk::next

Pointer to the chunk after this one in the list.

Definition at line 26 of file memorymanagement.h.

Referenced by MaxOS::memory::MemoryManager::MemoryManager().

◆ prev

MemoryChunk* MaxOS::memory::MemoryChunk::prev

Pointer to the chunk before this one in the list.

Definition at line 27 of file memorymanagement.h.

Referenced by MaxOS::memory::MemoryManager::MemoryManager().

◆ size

size_t MaxOS::memory::MemoryChunk::size

The size of this span of memory (not including the MemoryChunk struct itself)

Definition at line 30 of file memorymanagement.h.

Referenced by MaxOS::memory::MemoryManager::MemoryManager().


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