diff options
author | Fritz Elfert <felfert@to.com> | 2000-01-17 11:49:41 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2000-01-17 11:49:41 +0000 |
commit | ab18114bfd38d4632c66401b5bc079241e27fab3 (patch) | |
tree | 14f9c1d5f020cf8ed2f205094ca9e2fc907bb969 /lib/bufferstore.h | |
parent | 6eceb82662300bf306e70bd943200665bc3c9bc3 (diff) | |
download | plptools-ab18114bfd38d4632c66401b5bc079241e27fab3.tar.gz plptools-ab18114bfd38d4632c66401b5bc079241e27fab3.tar.bz2 plptools-ab18114bfd38d4632c66401b5bc079241e27fab3.zip |
Release of plptools-0.5
Diffstat (limited to 'lib/bufferstore.h')
-rw-r--r-- | lib/bufferstore.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/bufferstore.h b/lib/bufferstore.h index 4840689..df216c0 100644 --- a/lib/bufferstore.h +++ b/lib/bufferstore.h @@ -7,10 +7,10 @@ class ostream; class bufferStore { public: bufferStore(); - bufferStore(const unsigned char*buff, long len); + bufferStore(const unsigned char *, long); ~bufferStore(); - bufferStore(const bufferStore &a); - void operator =(const bufferStore &a); + bufferStore(const bufferStore &); + bufferStore &operator =(const bufferStore &); // Reading Utils unsigned long getLen() const; @@ -18,19 +18,20 @@ public: unsigned int getWord(long pos) const; unsigned int getDWord(long pos) const; const char* getString(long pos=0) const; - void discardFirstBytes(int n); - friend ostream &operator<<(ostream &s, const bufferStore &m); + void discardFirstBytes(int); + friend ostream &operator<<(ostream &, const bufferStore &); bool empty() const; // Writing utils void init(); - void init(const unsigned char*buff, long len); - void addByte(unsigned char c); - void addWord(int a); - void addDWord(long a); - void addString(const char* s); - void addStringT(const char* s); - void addBuff(const bufferStore &s, long maxLen=-1); + void init(const unsigned char*, long); + void addByte(unsigned char); + void addWord(int); + void addDWord(long); + void addString(const char*); + void addStringT(const char*); + void addBytes(const unsigned char*, int); + void addBuff(const bufferStore &, long maxLen=-1); private: void checkAllocd(long newLen); |