Difference between revisions of "NewtonAllocMemory"

From Newton Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 10 June 2019

NewtonAllocMemory

typedef void* (*NewtonAllocMemory) (int sizeInBytes);

Usage

When custom memory manager is used, this is the malloc() function.

Parameters

  • int sizeInBytes Amout of bytes that need to be allocated

Return

  • Pointer to the allocated memory block.


Remarks

  • This is not a library function, but a callback event.

See also

NewtonSetMemorySystem