VX_Malloc and VX_Free


C Specification

#include <nitro/vx.h>

extern void*    VX_Malloc   ( u32 size );

extern void     VX_Free     ( void* mem_p );

Description

Allocator/Deallocator functions
VX_Malloc and VX_Free are used to perform any dynamic allocation/deallocation done in the libVX library.
VX_Malloc and VX_Free are not implemented in the libVX library, but instead declared extern.
You must provide an implementation to these functions in your program !!!
This gives you freedom to use classic malloc/free functions or any custom allocation routines you may have.

VX_Malloc is used only by VX_OpenMovieFromMemory and VX_OpenMovieFromFile functions.
VX_Free is used only by VX_CloseMovie function.

Arguments

Same as malloc/free standard functions

Return Values

Same as malloc/free standard functions

Revision History

02/15/2006 Added list of functions who are calling VX_Malloc/VX_Free in libVX
10/26/2005 Initial Version