OSAllocFromMEM1ArenaHi

C Specification

#include <revolution/os.h>
void* OSAllocFromMEM1ArenaHi(u32 size, u32 align);
#define OSAllocFromArenaHi OSAllocFromMEM1ArenaHi

Arguments

size Size of object to allocate.
align Object alignment and new arena boundary to set (must be a power of 2).

Return Values

A pointer to the allocated region that is aligned to an align-byte boundary. The new upper boundary of the arena is also set and aligned to an align-byte boundary.

Description

Allocates size bytes from the upper boundary of the arena in internal main memory (MEM1 area). Extra memory from the arena may be consumed for the alignment (specified by align).

To maintain backward compatibility, it is also defined with the name OSAllocFromArenaHi.

See Also

Arena Functions, OSAllocFromMEM1ArenaLo, OSAllocFromMEM2ArenaHi, OSAllocFromMEM2ArenaLo

Revision History

03/01/2006 Initial version.