Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

OFX::Memory Namespace Reference


Detailed Description

namespace for memory allocation that is done via wrapping the ofx memory suite


Functions

void * alloc (size_t nBytes, ImageEffect *handle=0) throw (std::bad_alloc)
 allocate n bytes, returns a pointer to it
void free (void *ptr) throw ()
 free n previously allocated memory
void * allocate (size_t nBytes, ImageEffect *handle=0)
 allocate n bytes, returns a pointer to it


Function Documentation

void* alloc size_t  nBytes,
ImageEffect *  handle = 0
throw (std::bad_alloc)
 

allocate n bytes, returns a pointer to it

void * OFX::Memory::allocate size_t  nBytes,
ImageEffect *  handle = 0
 

allocate n bytes, returns a pointer to it

  • nBytes - the number of bytes to allocate
  • handle - effect instance to assosciate with this memory allocation, or NULL
This function has the host allocate memory using it's own memory resources and returns that to the plugin. This memory is distinct to any image memory allocation.

Suceeds or throws std::bad_alloc

void OFX::Memory::free void *  ptr  )  throw ()
 

free n previously allocated memory


Generated on Thu Oct 9 13:03:50 2008 for OFX Support by  doxygen 1.3.9.1