#include <nitro/os.h>
void OS_ReferentSize(
OSArenaId id ,
void* ptr );
Acquires the size that the specified main block occupies in memory, excluding the header region for managing the memory block
For information about this value see OS_InitArena().
ptr is the address to the memory block that is previously acquired with OS_AllocFixed(), OS_AllocFromHeap(), etc.
id |
ID of the arena associated with the memory block |
ptr |
Pointer to the memory block |
Returns the size of the specified main block in memory, excluding the header region for managing the memory block.
OS_InitArena, OS_InitAlloc, OS_AllocFromHeap, OS_AllocFixed
01/07/2004 Initial version