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

Method seekp

src/IECore/StreamIndexedIO.cpp:2829–2837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2827}
2828
2829void StreamIndexedIO::StreamFile::seekp( size_t pos, std::ios_base::seekdir dir )
2830{
2831 /// Seek 'write' pointer to writable location
2832 m_stream->seekp( pos, dir );
2833
2834 /// Clear error flags because problem on GCC 3.3.4:
2835 /// When the file is a std::stringstream then the first seekp(0) will fail and inhibit following operations on the file.
2836 m_stream->clear();
2837}
2838
2839uint64_t StreamIndexedIO::StreamFile::tellg()
2840{

Callers 2

writeMethod · 0.80
writeUniqueDataMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected