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

Method writeNode

src/IECore/StreamIndexedIO.cpp:2174–2182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2172
2173template < typename F >
2174void StreamIndexedIO::Index::writeNode( SubIndexNode *node, F &f )
2175{
2176 NodeBase::NodeType nodeType = node->nodeType();
2177 f.write( (char *) &nodeType, sizeof( char ) );
2178
2179 uint64_t id = m_stringCache.find( node->name() );
2180 writeLittleEndian( f, id );
2181 writeLittleEndian(f, node->offset() );
2182}
2183
2184template < typename F >
2185void StreamIndexedIO::Index::writeNodeChildren( DirectoryNode *n, F &f )

Callers

nothing calls this directly

Calls 7

writeLittleEndianFunction · 0.85
nodeTypeMethod · 0.80
subindexMethod · 0.80
writeMethod · 0.45
findMethod · 0.45
nameMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected