Allocates an aligned block of memory.
#include <nks/memory.h> void *NXMemAlloc ( size_t size, size_t alignment);
(IN) Specifies the size, in bytes, of the memory to allocate.
(IN) Specifies the alignment requirements, if any. Zero indicates a default alignment. If a nonzero alignment value is specified, it must be a power of two. If an illegal alignment is specified, the alignment reverts to default alignment.
If successful, returns a pointer to the block of allocated memory; otherwise, returns NULL.
The allocated memory might be pageable. For information concerning page sized allocations, refer to NXPageAlloc.
For sample code, see Memory.c.