OSAllocFromMEM1ArenaLo

Syntax

#include <revolution/os.h>

void* OSAllocFromMEM1ArenaLo(u32 size, u32 align);

#define OSAllocFromArenaLo OSAllocFromMEM1ArenaLo

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 space aligned with align-byte boundaries. The new low boundary of the arena is also set and aligned with align-byte boundaries.

Description

Allocates size bytes from the lower 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 OSAllocFromArenaLo.

See Also

Arena Functions, OSAllocFromMEM1ArenaHi, OSAllocFromMEM2ArenaHi, OSAllocFromMEM2ArenaLo

Revision History

2006/03/01 Initial version.


CONFIDENTIAL