MCPcopy Create free account
hub / github.com/ImageEngine/cortex / handleArray

Method handleArray

src/IECore/IndexedIOAlgo.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 void handleArray( const IndexedIO *src, IndexedIO *dst, const IndexedIO::Entry &entry, Callback &callback )
59 {
60 std::vector<T> array( entry.arrayLength() );
61 T *ptr = array.data();
62 src->read( entry.id(), ptr, entry.arrayLength() );
63 dst->write( entry.id(), ptr, entry.arrayLength() );
64 }
65};
66
67template<typename T, typename Callback>

Callers 1

handleFileFunction · 0.45

Calls 5

dataMethod · 0.80
idMethod · 0.80
arrayLengthMethod · 0.45
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected