diff options
author | Fritz Elfert <felfert@to.com> | 2002-03-05 17:58:11 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-03-05 17:58:11 +0000 |
commit | cb2577b29fe7b93e9b168ded7f35da748fdeaf1d (patch) | |
tree | d7cf962ead89069f885f8da7137feb94acb3dfec /lib/bufferstore.h | |
parent | 8f9ae0a93ba3ea860a28933c2a411eae9365c859 (diff) | |
download | plptools-cb2577b29fe7b93e9b168ded7f35da748fdeaf1d.tar.gz plptools-cb2577b29fe7b93e9b168ded7f35da748fdeaf1d.tar.bz2 plptools-cb2577b29fe7b93e9b168ded7f35da748fdeaf1d.zip |
- Re-Implemented lower levels of ncpd (packet and link).
ncpd is now multithreaded. Results in much better performance and less
CPU usage.
Diffstat (limited to 'lib/bufferstore.h')
-rw-r--r-- | lib/bufferstore.h | 18 |
1 files changed, 16 insertions, 2 deletions
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); |