MEMAllocFromAllocator

C Specification

#include <revolution/mem.h>

void* MEMAllocFromAllocator( MEMAllocator* pAllocator, u32 size );

Arguments

pAllocator Address of the MemAllocator structure.
size Size of the memory block in bytes.

Return Values

When the memory block is allocated, the start address of this memory block is returned. When the memory cannot be allocated, NULL is returned.

Description

Allocates a memory block from the allocator.

The implementation depends on the setting of the allocator and the memory manager related to the allocator.

See Also

MEMFreeToAllocator

Revision History

2006/03/01 Initial version.


CONFIDENTIAL