diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-04-16 22:30:56 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-04-16 22:30:56 +0000 |
commit | e59427a62cdd93ac8b18396d19f6dc74e979df95 (patch) | |
tree | 280938f0c9c0f84bcc3898bf3161b9700d9071cd /src/google/protobuf/io/zero_copy_stream_impl.h | |
parent | f663b1602d2675b1ab91d76dd739070d34e01291 (diff) | |
download | protobuf-e59427a62cdd93ac8b18396d19f6dc74e979df95.tar.gz protobuf-e59427a62cdd93ac8b18396d19f6dc74e979df95.tar.bz2 protobuf-e59427a62cdd93ac8b18396d19f6dc74e979df95.zip |
Commit Brian Olson's gzip stream implementations.
Diffstat (limited to 'src/google/protobuf/io/zero_copy_stream_impl.h')
-rw-r--r-- | src/google/protobuf/io/zero_copy_stream_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/google/protobuf/io/zero_copy_stream_impl.h b/src/google/protobuf/io/zero_copy_stream_impl.h index e886d8f8..448aa216 100644 --- a/src/google/protobuf/io/zero_copy_stream_impl.h +++ b/src/google/protobuf/io/zero_copy_stream_impl.h @@ -431,6 +431,11 @@ class LIBPROTOBUF_EXPORT FileOutputStream : public ZeroCopyOutputStream { // Even if an error occurs, the file descriptor is closed when this returns. bool Close(); + // Flushes FileOutputStream's buffers but does not close the + // underlying file. No special measures are taken to ensure that + // underlying operating system file object is synchronized to disk. + bool Flush(); + // By default, the file descriptor is not closed when the stream is // destroyed. Call SetCloseOnDelete(true) to change that. WARNING: // This leaves no way for the caller to detect if close() fails. If |