Miles Sound System SDK 7.2a

AIL_mem_use_malloc

The function AIL_mem_use_malloc replaces the default memory allocation routines.

void * AIL_mem_use_malloc(
  AILMALLOCCB malloccb
);

In Parameters

malloccb
specifies a memory-allocation routine function of the AILMALLOCCB type.

Returns

The previous malloc routine's address.

Discussion

The memory returned by the allocator routine must be aligned on a 16-byte boundary!

Use this function with AIL_mem_use_free.

Use this routine and AIL_mem_use_free to hook into your own memory management system.

AIL_mem_use_malloc and AIL_mem_use_free should be called prior to AIL_startup.


Group: Memory and File Services
Related Sections: Memory management under DOS, Memory management under MacOS, Memory management under Nintendo Wii, Memory management under PlayStation 2, Memory management under PlayStation 3, Memory management under Win32, Memory management under Win64, Memory management under Xbox, Memory management under Xbox 360
Related Functions: AILMALLOCCB, AIL_mem_alloc_lock, AIL_mem_use_free, AIL_mem_use_malloc, AIL_startup
Related Basic Types: void, void *

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.