aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/stream.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/stream.h b/common/stream.h
index a89e5475dd..32688e08ff 100644
--- a/common/stream.h
+++ b/common/stream.h
@@ -67,6 +67,12 @@ public:
*/
virtual uint32 write(const void *dataPtr, uint32 dataSize) = 0;
+ /**
+ * Commit any buffered data to the underlying channel or
+ * storage medium; unbuffered streams can use the default
+ * implementation.
+ */
+ virtual void flush() {}
// The remaining methods all have default implementations; subclasses
// need not (and should not) overload them.