#include <swcomprs.h>
Definition at line 31 of file swcomprs.h.
SWCompress::~SWCompress |
( |
| ) |
|
|
virtual |
void SWCompress::cycleStream |
( |
| ) |
|
|
private |
Definition at line 198 of file swcomprs.cpp.
200 unsigned long len, totlen = 0;
206 }
while (len == 1024);
virtual unsigned long getChars(char *buf, unsigned long len)
virtual unsigned long sendChars(char *buf, unsigned long len)
void SWCompress::decode |
( |
void |
| ) |
|
|
virtual |
void SWCompress::encode |
( |
void |
| ) |
|
|
virtual |
unsigned long SWCompress::getChars |
( |
char * |
buf, |
|
|
unsigned long |
len |
|
) |
| |
|
virtual |
char * SWCompress::getCompressedBuf |
( |
unsigned long * |
len = 0 | ) |
|
|
virtual |
Definition at line 111 of file swcomprs.cpp.
116 if (len) *len =
zlen;
virtual void encode(void)
virtual int SWCompress::getLevel |
( |
| ) |
|
|
inlinevirtual |
char * SWCompress::getUncompressedBuf |
( |
unsigned long * |
len = 0 | ) |
|
|
virtual |
Definition at line 90 of file swcomprs.cpp.
92 buf = (
char *)calloc(1,1);
virtual void decode(void)
void SWCompress::init |
( |
| ) |
|
|
private |
unsigned long SWCompress::sendChars |
( |
char * |
buf, |
|
|
unsigned long |
len |
|
) |
| |
|
virtual |
Definition at line 141 of file swcomprs.cpp.
145 if ((
pos + len) > (
unsigned)
slen) {
147 memset(&
buf[
pos], 0, len + 1024);
150 else buf = (
char *)calloc(1, len + 1024);
151 memmove(&
buf[
pos], ibuf, len);
162 zbuf = (
char *)calloc(1, len + 1024);
void SWCompress::setCompressedBuf |
( |
unsigned long * |
len, |
|
|
char * |
buf = 0 |
|
) |
| |
|
virtual |
virtual void SWCompress::setLevel |
( |
int |
l | ) |
|
|
inlinevirtual |
void SWCompress::setUncompressedBuf |
( |
const char * |
buf = 0 , |
|
|
unsigned long * |
len = 0 |
|
) |
| |
|
virtual |
Definition at line 75 of file swcomprs.cpp.
78 slen = (len) ? *len : strlen(ibuf);
79 buf = (
char *) calloc(
slen + 1, 1);
83 buf = (
char *)calloc(1,1);
virtual void decode(void)
unsigned long SWCompress::pos |
|
protected |
unsigned long SWCompress::slen |
|
protected |
unsigned long SWCompress::zlen |
|
protected |
unsigned long SWCompress::zpos |
|
protected |
The documentation for this class was generated from the following files: