Namespaces | |
cinema | |
Macros | |
#define | __C4D_MEM_ALIGNMENT_MASK__ |
#define | FillMemType(t, d, x, v) |
Functions | |
UInt | GeMemGetFreePhysicalMemoryEstimate () |
void | ClearMem (void *d, Int size, Int32 value=0) |
void | CopyMem (const void *s, void *d, Int size) |
void | MemCopy (void *d, const void *s, Int size) |
template<class T , class U > | |
void | FillMemTypeTemplate (T *data_ptr, Int size, const U *check_type, Int32 value) |
template<typename T > | |
void | ClearMemType (T *data_ptr, Int cnt) |
template<typename T > | |
void | CopyMemType (const T *src_ptr, T *dst_ptr, Int cnt) |
#define __C4D_MEM_ALIGNMENT_MASK__ |
Memory returned by NewMem() is guaranteed to be at least aligned to a 16 byte boundary.
#define FillMemType | ( | t, | |
d, | |||
x, | |||
v | |||
) |
Fills a block of memory of the specified type.
[in] | t | Data type (e.g. Char, Float). |
[out] | d | Address of the block of memory to fill. The caller owns the pointed memory. |
[in] | x | Size of the memory block to fill. |
[in] | v | Value to fill the memory block with. |