From da3bbc53c62c7e84c4f0f4f54ebbebe98ba9e13a Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Wed, 31 Jan 2001 02:07:07 +0000 Subject: Added a truncate() method. --- lib/bufferstore.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/bufferstore.h') diff --git a/lib/bufferstore.h b/lib/bufferstore.h index 81704e1..494d0af 100644 --- a/lib/bufferstore.h +++ b/lib/bufferstore.h @@ -190,6 +190,14 @@ public: */ void addBuff(const bufferStore &b, long maxLen = -1); + /** + * Truncates the buffer. + * If the buffer is smaller, does nothing. + * + * @param newLen The new length of the buffer. + */ + void truncate(long newLen); + private: void checkAllocd(long newLen); -- cgit v1.2.3