Memory Divider X
MDX = malloc() + free() + Garbage Collection
 All Classes Namespaces Functions Variables Pages
Public Attributes | List of all members
MemoryDividerX::MDXShortMalloc Struct Reference

A structure describing one memory block request. Used in bulk operations. More...

Inheritance diagram for MemoryDividerX::MDXShortMalloc:
MemoryDividerX::MDXLongMalloc

Public Attributes

void ** chunk
 A pointer to a pointer where the address of the new block is stored.
 
uinta len
 The size (in bytes) of the memory block requested.
 

Detailed Description

A structure describing one memory block request. Used in bulk operations.

Note that chunk is a pointer to a pointer. The address of the new memory block isn't saved in the MDXShortMalloc structure, it's stored in the pointer pointed to by MDXShortMalloc::chunk.

An array of these is used by MDXPool::malloc(uinta count, MDXShortMalloc *reqs, uinta flags) for multiple memory requests where all the blocks have the same flags.

Note that throughout this API documentation the type uinta means an unsigned integer of the same size as a void pointer.