From cb2577b29fe7b93e9b168ded7f35da748fdeaf1d Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Tue, 5 Mar 2002 17:58:11 +0000 Subject: - Re-Implemented lower levels of ncpd (packet and link). ncpd is now multithreaded. Results in much better performance and less CPU usage. --- lib/bufferstore.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'lib/bufferstore.h') diff --git a/lib/bufferstore.h b/lib/bufferstore.h index 3a69159..5a1d8bf 100644 --- a/lib/bufferstore.h +++ b/lib/bufferstore.h @@ -216,7 +216,7 @@ public: * whole content of @p b is appended. */ void addBuff(const bufferStore &b, long maxLen = -1); - + /** * Truncates the buffer. * If the buffer is smaller, does nothing. @@ -224,7 +224,21 @@ public: * @param newLen The new length of the buffer. */ void truncate(long newLen); - + + /** + * Prepends a byte to the content of this instance. + * + * @param c The byte to append. + */ + void prependByte(unsigned char c); + + /** + * Prepends a word to the content of this instance. + * + * @param w The word to append. + */ + void prependWord(int); + private: void checkAllocd(long newLen); -- cgit v1.2.3