Copies data from another array of the same type. **/
| 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) |
no test coverage detected