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

Method rawWrite

src/IECore/StreamIndexedIO.cpp:3290–3300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3288
3289template<typename T>
3290void StreamIndexedIO::rawWrite(const IndexedIO::EntryID &name, const T *x, size_t arrayLength)
3291{
3292 writable(name);
3293 remove(name, false);
3294
3295 size_t size = IndexedIO::DataSizeTraits<T*>::size(x, arrayLength);
3296 IndexedIO::DataType dataType = IndexedIO::DataTypeTraits<T*>::type();
3297
3298 Index::WriteInfo info = m_node->m_idx->writeUniqueDataCompressed( (char *) x, size );
3299 m_node->addDataChild( name, dataType, arrayLength, info.offset, info.size, size, info.numCompressedBlocks );
3300}
3301
3302template<typename T>
3303void StreamIndexedIO::write(const IndexedIO::EntryID &name, const T &x)

Callers

nothing calls this directly

Calls 4

removeFunction · 0.85
typeFunction · 0.85
addDataChildMethod · 0.80

Tested by

no test coverage detected