aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bufferstore.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2000-01-17 11:49:41 +0000
committerFritz Elfert <felfert@to.com>2000-01-17 11:49:41 +0000
commitab18114bfd38d4632c66401b5bc079241e27fab3 (patch)
tree14f9c1d5f020cf8ed2f205094ca9e2fc907bb969 /lib/bufferstore.h
parent6eceb82662300bf306e70bd943200665bc3c9bc3 (diff)
downloadplptools-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.h25
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);