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

Function read

src/IECorePython/CachedReaderBinding.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52{
53
54static ObjectPtr read( CachedReader &r, const std::string &f )
55{
56 ScopedGILRelease gilRelease;
57 ConstObjectPtr o = r.read( f );
58 if( o )
59 {
60 return o->copy();
61 }
62 else
63 {
64 return nullptr;
65 }
66}
67
68void bindCachedReader()
69{

Callers 3

StringCacheMethod · 0.85
openStreamMethod · 0.85
readMethod · 0.85

Calls 2

readMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected