summaryrefslogtreecommitdiff
path: root/i/marvin/src/data
diff options
context:
space:
mode:
authordufourj2006-04-20 21:05:21 +0000
committerdufourj2006-04-20 21:05:21 +0000
commit77345d83565b00b825e95730d3a9527364d5be5d (patch)
tree9980c584c0f8c3d30b5992f017a08fed13038f45 /i/marvin/src/data
parent0e7bc7bb9ff3be0b28a7c60b624f0b75e780f99f (diff)
DataBuffer :
- add a clear method.
Diffstat (limited to 'i/marvin/src/data')
-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