MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / sync

Function sync

src/OpenFOAM/db/IOstreams/gzstream/gzstream.C:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125int gzstreambuf::sync() {
126 // Changed to use flush_buffer() instead of overflow( EOF)
127 // which caused improper behavior with std::endl and flush(),
128 // bug reported by Vincent Ricard.
129 if ( pptr() && pptr() > pbase()) {
130 if ( flush_buffer() == EOF)
131 return -1;
132 }
133 return 0;
134}
135
136// --------------------------------------
137// class gzstreambase:

Callers 1

gzstream.CFile · 0.70

Calls 1

flush_bufferFunction · 0.85

Tested by

no test coverage detected