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

Method SetData

Include/XnArray.h:81–91  ·  view source on GitHub ↗

Copies data from a raw buffer of the same type pointed to by pData, and sets size to nSize. **/

Source from the content-addressed store, hash-verified

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)
82 {
83 Clear();
84 XnStatus nRetVal = SetSize(nSize);
85 XN_IS_STATUS_OK(nRetVal);
86 for (XnUInt32 i = 0; i < nSize; i++)
87 {
88 m_pData[i] = pData[i];
89 }
90 return XN_STATUS_OK;
91 }
92
93 /** @returns the raw data of this array as a read-only buffer. **/
94 const T* GetData() const

Callers 4

AddTailIMethod · 0.45
AddHeadIMethod · 0.45
AddAfterIMethod · 0.45
AddBeforeIMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected