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

Function flush_buffer

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

Source from the content-addressed store, hash-verified

101}
102
103int gzstreambuf::flush_buffer() {
104 // Separate the writing of the buffer from overflow() and
105 // sync() operation.
106 int w = pptr() - pbase();
107 if ( gzwrite( file, pbase(), w) != w)
108 return EOF;
109 pbump( -w);
110 return w;
111}
112
113int gzstreambuf::overflow( int c) { // used for output buffer only
114 if ( ! ( mode & std::ios::out) || ! opened)

Callers 2

overflowFunction · 0.85
syncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected