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

Method read

src/IECore/IFFFile.cpp:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void IFFFile::Chunk::read( std::string &data )
197{
198 m_file->m_iStream->seekg( m_filePosition, std::ios_base::beg );
199
200 std::vector<char> buffer( m_dataSize );
201 m_file->m_iStream->read( buffer.data(), m_dataSize );
202
203 data.clear();
204 data = buffer.data();
205}
206
207int IFFFile::Chunk::alignmentQuota()
208{

Callers 2

openMethod · 0.45
readHeaderMethod · 0.45

Calls 3

seekgMethod · 0.80
dataMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected