alloc.h Header File

Header File Index

Routines for dynamic memory allocation

 Functions
alloca
Allocates memory on the local storage space.
calloc_throw
Performs calloc, and throws an error if not successful.
calloc
Allocates a memory block for a given number and size of items.
free
Frees an allocated block.
FreeHandles
Determines the number of free handles.
HeapAlloc
Allocates memory and returns a handle of allocated block.
HeapAllocESTACK
Like HeapAlloc, but reduces the size of the expression stack if necessary.
HeapAllocHigh
Allocates memory at the high end of the heap and returns the handle of the allocated block.
HeapAllocHighThrow
Performs HeapAllocHigh, and throws an error if not successful.
HeapAllocPtr
Allocates memory at the high end of the heap and returns a pointer to the allocated block.
HeapAllocPtrThrow
Performs HeapAllocPtr, and throws an error if not successful.
HeapAllocThrow
Performs HeapAlloc, and throws an error if not successful.
HeapAvail
Determines the size of the heap.
HeapCompress
Compresses the heap.
HeapDeref
Dereferences a handle.
HeapEnd
Determines the end of the heap.
HeapFree
Frees a heap block given its handle.
HeapFreeIndir
Frees a heap block given a pointer to it.
HeapFreePtr
Frees a block allocated using HeapAllocPtr.
HeapGetHandle
Gets the next available handle.
HeapGetLock
Determines whether a block is locked.
HeapLock
Locks a block.
HeapMax
Determines the size of the largest allocatable block.
HeapMoveHigh
Reallocates a block.
HeapPtrToHandle
Determines the handle associated with a block.
HeapRealloc
Reallocates a block to a new size.
HeapReallocThrow
Performs HeapRealloc, and throws an error if not successful.
HeapShuffle
Shuffles all unlocked blocks on the heap.
HeapSize
Determines the size of an allocated block.
HeapUnlock
Unlocks a block.
HeapWalk
Verifies and dumps the contents of the heap.
HLock
Locks and dereferences a handle.
malloc_throw
Performs malloc, and throws an error if not successful.
malloc
Allocates a memory block.
realloc_throw
Performs realloc, and throws an error if not successful.
realloc
Reallocates allocated memory.
 Constants
H_NULL
A null-handle value.
NULL
A null-pointer value.
 Predefined Types
Bool
An enumeration to describe true or false values.
HANDLE
Represents a handle associated with an allocated memory block.
HeapWalkCmds
An enumeration describing the valid parameters for HeapWalk.
size_t
A type to define sizes of strings and memory blocks.


See also: mem.h