Module va_toolbox.memory

Implementation of an Amiga-style memory allocator

This an freelist based allocator with an API similiar to that found on AmigaOS. It includes some configuration options.

This code needs much more changes and clean ups. Some configuration features should be templated.

Classes

NameDescription
Memory Memory Subsystem

Structs

NameDescription
MemHandler MemHandlerData
MemHeader MemHeader

Enums

NameDescription
MemFlags Memory Requirement Types (see AllocMem() )

Manifest constants

NameTypeDescription
MEM_DID_NOTHING Low Memory handler int return values. * * Return MEM_DID_NOTHING, if you couldn't free some memory. * Return MEM_TRY_AGAIN, you freed some memory, but can free more. * Return MEM_ALL_DONE if you can't free more memory.

Aliases

NameTypeDescription
MemHandlerCallBack int function(Memory, MemHandler*, va_toolbox.memory.MemHandlerData*) The callback function to be called in low memory situations.