MCPcopy Create free account
hub / github.com/creatale/node-dv / copyElem

Function copyElem

deps/opencv/modules/core/src/matrix.cpp:3575–3582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3573enum { HASH_SIZE0 = 8 };
3574
3575static inline void copyElem(const uchar* from, uchar* to, size_t elemSize)
3576{
3577 size_t i;
3578 for( i = 0; i + sizeof(int) <= elemSize; i += sizeof(int) )
3579 *(int*)(to + i) = *(const int*)(from + i);
3580 for( ; i < elemSize; i++ )
3581 to[i] = from[i];
3582}
3583
3584static inline bool isZeroElem(const uchar* data, size_t elemSize)
3585{

Callers 3

SparseMatMethod · 0.85
copyToMethod · 0.85
matrix.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected