aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bufferstore.cc
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2000-10-09 19:54:42 +0000
committerFritz Elfert <felfert@to.com>2000-10-09 19:54:42 +0000
commit108cbdee49661d0c6e0a8980795c5593dc077d91 (patch)
treeedac72b1142644bfec1bc120a9bd7e0a049bcfa9 /lib/bufferstore.cc
parent3f4b0b89d9e45a96dfe660890931aeaa0de87932 (diff)
downloadplptools-108cbdee49661d0c6e0a8980795c5593dc077d91.tar.gz
plptools-108cbdee49661d0c6e0a8980795c5593dc077d91.tar.bz2
plptools-108cbdee49661d0c6e0a8980795c5593dc077d91.zip
Added a hack for Jotter on S5mx and some experimental stuff.
Diffstat (limited to 'lib/bufferstore.cc')
-rw-r--r--lib/bufferstore.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bufferstore.cc b/lib/bufferstore.cc
index 7f2b49d..ea4bab6 100644
--- a/lib/bufferstore.cc
+++ b/lib/bufferstore.cc
@@ -64,7 +64,7 @@ void bufferStore::init() {
len = 0;
}
-void bufferStore::init(const unsigned char*_buff, long _len) {
+void bufferStore::init(const unsigned char *_buff, long _len) {
checkAllocd(_len);
start = 0;
len = _len;
@@ -95,8 +95,8 @@ unsigned int bufferStore::getDWord(long pos) const {
(buff[pos+start+3] << 24);
}
-const char* bufferStore::getString(long pos) const {
- return (const char*)buff + pos + start;
+const char * bufferStore::getString(long pos) const {
+ return (const char *)buff + pos + start;
}
ostream &operator<<(ostream &s, const bufferStore &m) {
@@ -137,19 +137,19 @@ void bufferStore::addByte(unsigned char cc) {
buff[len++] = cc;
}
-void bufferStore::addString(const char* s) {
+void bufferStore::addString(const char *s) {
int l = strlen(s);
checkAllocd(len + l);
memcpy(&buff[len], s, l);
len += l;
}
-void bufferStore::addStringT(const char* s) {
+void bufferStore::addStringT(const char *s) {
addString(s);
addByte(0);
}
-void bufferStore::addBytes(const unsigned char* s, int l) {
+void bufferStore::addBytes(const unsigned char *s, int l) {
checkAllocd(len + l);
memcpy(&buff[len], s, l);
len += l;