summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-06-18 16:27:43 +0000
committerChristian Pointner <equinox@anytun.org>2007-06-18 16:27:43 +0000
commita535453d0378fc6674b5af9eac8e608d907a8f9f (patch)
tree18f9bb1e7ef1d27a7f9e7763d23b9d0c30dea361 /buffer.h
parentI-D anytun some typos (diff)
bugfix @buffer resize
added buffer resizefront & back added package
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/buffer.h b/buffer.h
index 9856f97..be46910 100644
--- a/buffer.h
+++ b/buffer.h
@@ -39,11 +39,12 @@ public:
Buffer();
Buffer(u_int32_t length);
Buffer(u_int8_t* data, u_int32_t length);
- ~Buffer();
+ virtual ~Buffer();
Buffer(const Buffer &src);
void operator=(const Buffer &src);
- u_int32_t resize(u_int32_t new_length);
+ u_int32_t resizeFront(u_int32_t new_length);
+ u_int32_t resizeBack(u_int32_t new_length);
u_int32_t getLength() const;
u_int8_t* getBuf();
u_int8_t& operator[](u_int32_t index);