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

Method save

src/IECore/TimeCodeData.cpp:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template<>
49void TimeCodeData::save( SaveContext *context ) const
50{
51 Data::save( context );
52 IndexedIO *container = context->rawContainer();
53
54 const Imf::TimeCode &timeCode = readable();
55 /// \todo: should we be using FILM24_PACKING rather than the default?
56 unsigned data[2] = { timeCode.timeAndFlags(), timeCode.userData() };
57 container->write( g_valueEntry, data, 2 );
58}
59
60template<>
61void TimeCodeData::load( LoadContextPtr context )

Callers

nothing calls this directly

Calls 3

rawContainerMethod · 0.80
userDataMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected