NewtonAllocMemory

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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