aimsalgo 6.0.0
Neuroimaging image processing
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::LZBuffer ( )
inlineprotected

Definition at line 117 of file lz.h.

References _buf, _bufPos, and LZBUFSIZE.

◆ ~LZBuffer()

LZBuffer::~LZBuffer ( )
inlineprotected

Definition at line 125 of file lz.h.

References _buf.

Member Function Documentation

◆ _bufCpy()

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

Definition at line 171 of file lz.h.

References _buf, _wrap(), and LZBUFSIZE.

◆ _distance()

int LZBuffer::_distance ( int diff)
inlinestaticprotected

Definition at line 139 of file lz.h.

References LZBUFMASK.

◆ _nMatch()

int LZBuffer::_nMatch ( int pos,
const byte * p,
int nLimit )
protected

◆ _toBuf() [1/2]

void LZBuffer::_toBuf ( byte c)
inlineprotected

Definition at line 146 of file lz.h.

References _buf, _bufPos, and _wrap().

◆ _toBuf() [2/2]

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

Definition at line 153 of file lz.h.

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

◆ _wrap()

int LZBuffer::_wrap ( size_t pos)
inlinestaticprotected

Definition at line 132 of file lz.h.

References LZBUFMASK.

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

Member Data Documentation

◆ _buf

byte* LZBuffer::_buf
protected

Definition at line 64 of file lz.h.

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

◆ _bufPos

size_t LZBuffer::_bufPos
protected

Definition at line 65 of file lz.h.

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


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