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

Method load

src/IECore/TimeCodeData.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60template<>
61void TimeCodeData::load( LoadContextPtr context )
62{
63 Data::load( context );
64 const IndexedIO *container = context->rawContainer();
65
66 unsigned data[2];
67 unsigned *dataPtr = &data[0];
68 container->read( g_valueEntry, dataPtr, 2 );
69
70 Imf::TimeCode &timeCode = writable();
71 timeCode.setTimeAndFlags( data[0] );
72 timeCode.setUserData( data[1] );
73}
74
75template<>
76bool TimeCodeData::isEqualTo( const Object *other ) const

Callers

nothing calls this directly

Calls 2

rawContainerMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected