diff options
| author | Vincent Richard <[email protected]> | 2005-10-20 16:56:04 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2005-10-20 16:56:04 +0000 |
| commit | c241f071d26823ce2b6140c2687dcb750f6dfc29 (patch) | |
| tree | 7bd0762a15665a1500cfe6ee63901e92972b9a66 /src/platforms/posix/posixFile.cpp | |
| parent | Added 'charsetFilteredOutputStream'. (diff) | |
| download | vmime-c241f071d26823ce2b6140c2687dcb750f6dfc29.tar.gz vmime-c241f071d26823ce2b6140c2687dcb750f6dfc29.zip | |
Added flush() on 'outputStream' + added unit tests for 'charsetFilteredOutputStream' when input contains invalid sequences.
Diffstat (limited to 'src/platforms/posix/posixFile.cpp')
| -rw-r--r-- | src/platforms/posix/posixFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/platforms/posix/posixFile.cpp b/src/platforms/posix/posixFile.cpp index e914520d..eca90d20 100644 --- a/src/platforms/posix/posixFile.cpp +++ b/src/platforms/posix/posixFile.cpp @@ -119,6 +119,12 @@ void posixFileWriterOutputStream::write(const value_type* const data, const size } +void posixFileWriterOutputStream::flush() +{ + ::fsync(m_fd); +} + + // // posixFileReaderInputStream |
