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

Method read

src/IECore/StreamIndexedIO.cpp:341–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339
340 template < typename F >
341 const char *read( F &f ) const
342 {
343 uint64_t sz;
344 readLittleEndian( f, sz );
345
346 if ( m_ioBufferLen < sz + 1 )
347 {
348 if ( m_ioBuffer )
349 {
350 delete [] m_ioBuffer;
351 }
352 m_ioBufferLen = sz+1;
353 m_ioBuffer = new char[m_ioBufferLen];
354 }
355 f.read( m_ioBuffer, sz*sizeof(char));
356 m_ioBuffer[sz] = '\0';
357 return m_ioBuffer;
358 }
359
360 uint64_t m_prevId;
361

Callers

nothing calls this directly

Calls 2

readLittleEndianFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected