A.I.M.S algorithms


LZBuffer Class Reference

#include <aims/compression/lz.h>

Inheritance diagram for LZBuffer:

Protected Member Functions

 LZBuffer ()
 
 ~LZBuffer ()
 
void _toBuf (byte)
 
void _toBuf (const byte *, size_t sz)
 
void _bufCpy (byte *dst, int pos, size_t sz)
 
int _nMatch (int pos, const byte *p, int nLimit)
 

Static Protected Member Functions

static int _wrap (size_t pos)
 
static int _distance (int diff)
 

Protected Attributes

byte_buf
 
size_t _bufPos
 

Detailed Description

Definition at line 50 of file lz.h.

Constructor & Destructor Documentation

LZBuffer::LZBuffer ( )
inlineprotected

Definition at line 117 of file lz.h.

References _buf, _bufPos, and LZBUFSIZE.

LZBuffer::~LZBuffer ( )
inlineprotected

Definition at line 125 of file lz.h.

References _buf.

Member Function Documentation

void LZBuffer::_bufCpy ( byte dst,
int  pos,
size_t  sz 
)
inlineprotected

Definition at line 171 of file lz.h.

References _buf, _wrap(), ASSERT, and LZBUFSIZE.

int LZBuffer::_distance ( int  diff)
inlinestaticprotected

Definition at line 139 of file lz.h.

References LZBUFMASK.

int LZBuffer::_nMatch ( int  pos,
const byte p,
int  nLimit 
)
protected
void LZBuffer::_toBuf ( byte  c)
inlineprotected

Definition at line 146 of file lz.h.

References _buf, _bufPos, and _wrap().

void LZBuffer::_toBuf ( const byte src,
size_t  sz 
)
inlineprotected

Definition at line 153 of file lz.h.

References _buf, _bufPos, _wrap(), ASSERT, and LZBUFSIZE.

int LZBuffer::_wrap ( size_t  pos)
inlinestaticprotected

Definition at line 132 of file lz.h.

References LZBUFMASK.

Referenced by _bufCpy(), and _toBuf().

Member Data Documentation

byte* LZBuffer::_buf
protected

Definition at line 64 of file lz.h.

Referenced by _bufCpy(), _toBuf(), LZBuffer(), and ~LZBuffer().

size_t LZBuffer::_bufPos
protected

Definition at line 65 of file lz.h.

Referenced by _toBuf(), and LZBuffer().


The documentation for this class was generated from the following file: