Name

OfxMemorySuiteV1::memoryAlloc — Allocate memory.

Synopsis

#include "ofxMemory.h" 
OfxStatus (*memoryAlloc) ( void * handle ,
  size_t nBytes ,
  void ** allocatedData ) ;
 

Arguments

  • handle - effect instance to assosciate with this memory allocation, or NULL.
  • nBytes - the number of bytes to allocate
  • allocatedData - a pointer to the return value. Allocated memory will be alligned for any use.

Description

This function has the host allocate memory using its own memory resources and returns that to the plugin.

Returns