memoryBlock = AllocVec(byteSize, attributes)
D0 D0 D1
APTR AllocVec(ULONG, ULONG);
This function works identically to
AllocMem(), but tracks the size of the allocation.
See the
AllocMem() documentation for details.
The result of any memory allocation MUST be checked, and a viable error handling path taken. ANY allocation may fail if memory has been filled.
Memory allocation and deallocation as well as querying how much memory is available requires a Task or, by extension, a Process. None of the exec kernel memory management operations is safe to call from interrupt code!
FreeVec(),
AllocMem(), "exec/memory.i", "exec/alerts.i", <exec/memory.h>, <exec/alerts.h>