MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / CopyFrom

Method CopyFrom

Include/XnArray.h:70–78  ·  view source on GitHub ↗

Copies data from another array of the same type. **/

Source from the content-addressed store, hash-verified

68
69 /** Copies data from another array of the same type. **/
70 XnStatus CopyFrom(const XnArray& other)
71 {
72 if (this != &other)
73 {
74 XnStatus nRetVal = SetData(other.m_pData, other.m_nSize);
75 XN_IS_STATUS_OK(nRetVal);
76 }
77 return XN_STATUS_OK;
78 }
79
80 /** Copies data from a raw buffer of the same type pointed to by pData, and sets size to nSize. **/
81 XnStatus SetData(const T* pData, XnUInt32 nSize)

Callers 3

UpdateMethod · 0.45
PerformMethod · 0.45

Calls 1

SetDataFunction · 0.85

Tested by

no test coverage detected