Copies data from a raw buffer of the same type pointed to by pData, and sets size to nSize. **/
| 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 |
no outgoing calls
no test coverage detected