aglMalloc

Requests a specified amount of memory for use as a new data array.

voidp aglMalloc(
  size_t numbytes
  );

Parameters

numbytes
The number of bytes to be allocated.

Return Value

Returns a void pointer to the memory block allocated, or NULL if available memory is not sufficient.

Remarks

Array Visualizer treats the allocated memory block as a one-dimensional array whose elements are of the type UCHAR. To change the structure or data type, call aglReshape.

The caller should eventually deallocate the memory by calling aglFree.

See Also

aglFree, aglMallocEx, aglReshape