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

Method handleArray

src/IECore/IndexedIOAlgo.cpp:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 void handleArray( const IndexedIO *src, IndexedIO *dst, const IndexedIO::Entry &entry, Callback &callback )
80 {
81 std::vector<T> array( entry.arrayLength() );
82 T *ptr = array.data();
83 src->read( entry.id(), ptr, entry.arrayLength() );
84
85 callback( sizeof( T ) * entry.arrayLength() );
86 }
87};
88
89template<typename Callback>

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected