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

Method readArray

src/IECorePython/IndexedIOBinding.cpp:185–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184 template<typename T>
185 static typename TypedData< std::vector<T> >::Ptr readArray(IndexedIOPtr p, const IndexedIO::EntryID &name, const IndexedIO::Entry &entry)
186 {
187 size_t count = entry.arrayLength();
188 typename TypedData<std::vector<T> >::Ptr x = new TypedData<std::vector<T> > ();
189 x->writable().resize( entry.arrayLength() );
190 T *data = &(x->writable()[0]);
191 p->read(name, data, count);
192
193 return x;
194 }
195
196 static object read(IndexedIOPtr p, const IndexedIO::EntryID &name)
197 {

Callers

nothing calls this directly

Calls 4

arrayLengthMethod · 0.45
resizeMethod · 0.45
writableMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected