mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
flush underlying streams on close()/sync()
This commit is contained in:
@@ -253,6 +253,14 @@ int InflatingStreamBuf::writeToDevice(const char* buffer, std::streamsize length
|
||||
}
|
||||
|
||||
|
||||
int InflatingStreamBuf::sync()
|
||||
{
|
||||
int n = BufferedStreamBuf::sync();
|
||||
if (!n && _pOstr) _pOstr->flush();
|
||||
return n;
|
||||
}
|
||||
|
||||
|
||||
InflatingIOS::InflatingIOS(std::ostream& ostr, InflatingStreamBuf::StreamType type):
|
||||
_buf(ostr, type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user