DIPlib Documentation - ©1995-2014 Quantitative Imaging Group, Delft University of Technology.

MemoryNew

Allocate and track memory

SYNOPSIS

dip_Error dip_MemoryNew( pointer, size, resources )

FUNCTION

Allocates a chunk of memory, and adds a reference to the chunk to the list of tracked resources.

ARGUMENTS

Data typeNameDescription
void **pointerpointer to the memory chunk pointer
size_tsizesize of the memory chunk in bytes
dip_ResourcesresourcesResources tracking structure. See ResourcesNew

SEE ALSO

MemoryReallocate, MemoryFree, MemoryFunctionsSet