[−][src]Struct ofx_sys::OfxMemorySuiteV1
@brief The OFX suite that implements general purpose memory management.
Use this suite for ordinary memory management functions, where you would normally use malloc/free or new/delete on ordinary objects.
For images, you should use the memory allocation functions in the image effect suite, as many hosts have specific image memory pools.
\note C++ plugin developers will need to redefine new and delete as skins ontop of this suite.
Fields
memoryAlloc: Option<unsafe extern "C" fn(handle: *mut c_void, nBytes: usize, allocatedData: *mut *mut c_void) -> OfxStatus>
@brief Allocate memory.
\arg handle - effect instance to assosciate with this memory allocation, or NULL. \arg nBytes - the number of bytes to allocate \arg allocatedData - a pointer to the return value. Allocated memory will be alligned for any use.
This function has the host allocate memory using its own memory resources and returns that to the plugin.
@returns
- ::kOfxStatOK the memory was sucessfully allocated
- ::kOfxStatErrMemory the request could not be met and no memory was allocated
memoryFree: Option<unsafe extern "C" fn(allocatedData: *mut c_void) -> OfxStatus>
@brief Frees memory.
\arg allocatedData - pointer to memory previously returned by OfxMemorySuiteV1::memoryAlloc
This function frees any memory that was previously allocated via OfxMemorySuiteV1::memoryAlloc.
@returns
- ::kOfxStatOK the memory was sucessfully freed
- ::kOfxStatErrBadHandle \e allocatedData was not a valid pointer returned by OfxMemorySuiteV1::memoryAlloc
Trait Implementations
impl Clone for OfxMemorySuiteV1
[src]
fn clone(&self) -> OfxMemorySuiteV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for OfxMemorySuiteV1
[src]
impl Debug for OfxMemorySuiteV1
[src]
Auto Trait Implementations
impl Send for OfxMemorySuiteV1
impl Sync for OfxMemorySuiteV1
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,