From 77345d83565b00b825e95730d3a9527364d5be5d Mon Sep 17 00:00:00 2001 From: dufourj Date: Thu, 20 Apr 2006 21:05:21 +0000 Subject: DataBuffer : - add a clear method. --- i/marvin/src/data/data_buffer.hh | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3