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

Method MemoryIndexedIO

src/IECore/MemoryIndexedIO.cpp:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129
130MemoryIndexedIO::MemoryIndexedIO( ConstCharVectorDataPtr buf, const IndexedIO::EntryIDList &root, IndexedIO::OpenMode mode)
131{
132 const char *bufPtr = nullptr;
133 size_t size = 0;
134 if ( buf )
135 {
136 bufPtr = &(buf->readable()[0]);
137 size = buf->readable().size();
138 }
139 open( new StreamFile( bufPtr, size, mode ), root );
140}
141
142MemoryIndexedIO::MemoryIndexedIO( StreamIndexedIO::Node &rootNode ) : StreamIndexedIO( rootNode )
143{

Callers 15

__parseObjectFunction · 0.80
__serialiseObjectFunction · 0.80
testSerialisationMethod · 0.80
testDeprecatedSplinesMethod · 0.80
testMethod · 0.80
testCancelLoadingMethod · 0.80
testSubdivOptionsMethod · 0.80
testMethod · 0.80

Calls 2

readableMethod · 0.80
sizeMethod · 0.45

Tested by 9

testSerialisationMethod · 0.64
testDeprecatedSplinesMethod · 0.64
testMethod · 0.64
testCancelLoadingMethod · 0.64
testMethod · 0.64
testSaveAndLoadMethod · 0.64