c4d_memory.h File Reference

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)
 

Macro Definition Documentation

◆ __C4D_MEM_ALIGNMENT_MASK__

#define __C4D_MEM_ALIGNMENT_MASK__

Memory returned by NewMem() is guaranteed to be at least aligned to a 16 byte boundary.

◆ FillMemType

#define FillMemType (   t,
  d,
  x,
  v 
)

Fills a block of memory of the specified type.

Parameters
[in]tData type (e.g. Char, Float).
[out]dAddress of the block of memory to fill. The caller owns the pointed memory.
[in]xSize of the memory block to fill.
[in]vValue to fill the memory block with.