DUNE: Uniform Navigational Environment  2.5.0
DUNE::Compression::Compressor Class Referenceabstract

Public Member Functions

 Compressor (int a_level=-1)
 
virtual ~Compressor (void)
 
void compress (char *dst, unsigned long dst_len, char *src, unsigned long src_len)
 
Utils::ByteBuffer compress (char *src, unsigned long src_len)
 
void compress (Utils::ByteBuffer &dst, char *src, unsigned long src_len)
 
Utils::ByteBuffer compress (Utils::ByteBuffer &src)
 
void compress (Utils::ByteBuffer &dst, Utils::ByteBuffer &src)
 
unsigned long compressed (void) const
 
unsigned long compressedTotal (void) const
 
unsigned long processed (void) const
 
unsigned long processedTotal (void) const
 
int level (void) const
 
void level (int a_level)
 

Protected Member Functions

virtual unsigned long compressBlock (char *dst, unsigned long dst_len, char *src, unsigned long src_len)=0
 
virtual unsigned long compressBound (unsigned long length) const
 

Constructor & Destructor Documentation

DUNE::Compression::Compressor::Compressor ( int  a_level = -1)
inline
virtual DUNE::Compression::Compressor::~Compressor ( void  )
inlinevirtual

Member Function Documentation

void DUNE::Compression::Compressor::compress ( char *  dst,
unsigned long  dst_len,
char *  src,
unsigned long  src_len 
)
Utils::ByteBuffer DUNE::Compression::Compressor::compress ( char *  src,
unsigned long  src_len 
)

References compress().

void DUNE::Compression::Compressor::compress ( Utils::ByteBuffer dst,
char *  src,
unsigned long  src_len 
)
void DUNE::Compression::Compressor::compress ( Utils::ByteBuffer dst,
Utils::ByteBuffer src 
)
virtual unsigned long DUNE::Compression::Compressor::compressBlock ( char *  dst,
unsigned long  dst_len,
char *  src,
unsigned long  src_len 
)
protectedpure virtual
virtual unsigned long DUNE::Compression::Compressor::compressBound ( unsigned long  length) const
inlineprotectedvirtual

Reimplemented in DUNE::Compression::ZlibCompressor.

Referenced by compress().

unsigned long DUNE::Compression::Compressor::compressed ( void  ) const
inline
unsigned long DUNE::Compression::Compressor::compressedTotal ( void  ) const
inline
int DUNE::Compression::Compressor::level ( void  ) const
inline
void DUNE::Compression::Compressor::level ( int  a_level)
inline
unsigned long DUNE::Compression::Compressor::processed ( void  ) const
inline
unsigned long DUNE::Compression::Compressor::processedTotal ( void  ) const
inline
Collaboration diagram for DUNE::Compression::Compressor:
Collaboration graph