diff options
author | Christian Pointner <equinox@anytun.org> | 2007-06-18 16:27:43 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2007-06-18 16:27:43 +0000 |
commit | a535453d0378fc6674b5af9eac8e608d907a8f9f (patch) | |
tree | 18f9bb1e7ef1d27a7f9e7763d23b9d0c30dea361 /buffer.h | |
parent | I-D anytun some typos (diff) |
bugfix @buffer resize
added buffer resizefront & back
added package
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |