summaryrefslogtreecommitdiff
path: root/i/marvin
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin')
-rw-r--r--i/marvin/src/data/data_buffer.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/i/marvin/src/data/data_buffer.hh b/i/marvin/src/data/data_buffer.hh
index e0d526e..7b71a4d 100644
--- a/i/marvin/src/data/data_buffer.hh
+++ b/i/marvin/src/data/data_buffer.hh
@@ -77,5 +77,7 @@ class DataBuffer : public DataInput, public DataOutput
dataType_e type (void) const { return type_; }
/// Change le type de données du buffer.
void setType (const dataType_e type) { type_ = type; }
+ /// Empty/clear the content of the buffer.
+ void clear (void) { tailPos_ = headPos_ = 0; }
};
#endif // data_buffer_hh