summaryrefslogtreecommitdiff
path: root/i/marvin/src/data/data_buffer.hh
diff options
context:
space:
mode:
authordufourj2006-04-09 15:53:14 +0000
committerdufourj2006-04-09 15:53:14 +0000
commitfe8085484038b83d431459ac7fc3980cbbac9137 (patch)
tree5f4bd11fbbb60ee311e969630bbe9d294849ca75 /i/marvin/src/data/data_buffer.hh
parent1cb15048a3da2076ea3d41b53b2791cbb8925eec (diff)
Data:
- ajout du buffer circulaire (enfin !)
Diffstat (limited to 'i/marvin/src/data/data_buffer.hh')
-rw-r--r--i/marvin/src/data/data_buffer.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/i/marvin/src/data/data_buffer.hh b/i/marvin/src/data/data_buffer.hh
index 3d2201d..e0d526e 100644
--- a/i/marvin/src/data/data_buffer.hh
+++ b/i/marvin/src/data/data_buffer.hh
@@ -51,8 +51,6 @@ class DataBuffer : public DataInput, public DataOutput
dataType_e type_;
/// Augmente la taille du buffer pour correspondre à size.
void grow (const unsigned size);
- /// Echange les buffers.
- void swap (DataBuffer &d);
public:
/// Constructeur par défaut.
DataBuffer (void);
@@ -73,6 +71,8 @@ class DataBuffer : public DataInput, public DataOutput
void write (const uint8_t *buf, unsigned size);
/// Taille utile du buffer.
unsigned size (void) const { return tailPos_ - headPos_; }
+ /// Echange les buffers.
+ void swap (DataBuffer &d);
/// Type de données du buffer.
dataType_e type (void) const { return type_; }
/// Change le type de données du buffer.