C++
Acad::ErrorStatus acutNewBuffer( void *& pOutput, size_t size );
File
acutmem.h
Description
This function allocates size bytes of memory and sets pOutput to point to the memory allocated. Any memory currently pointed to by pOutput will be lost. Returns Acad::eOk if the allocation is successful; otherwise, returns Acad::eOutOfMemory.
Parameters
Parameters | Description |
---|---|
pOutput | Output pointer to allocated memory |
size | Input number of bytes to allocate |