Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cStreamBZ2Base Class Referenceabstract

#include <cStreamBZ2.h>

Inheritance diagram for GrayLib::cStreamBZ2Base:
GrayLib::cStreamBZ2Compress GrayLib::cStreamBZ2Decompress

Public Member Functions

 cStreamBZ2Base ()
 
virtual ~cStreamBZ2Base ()
 
virtual HRESULT FlushX ()=0
 
 UNITTEST_FRIEND (cStreamBZ2Base)
 

Static Public Member Functions

static HRESULT GRAYCALL GetHResultFrom (ZRET_t izRet)
 
static HRESULT GRAYCALL Compress1 (BYTE *pDest, size_t nDestSizeMax, const void *pSrc, size_t nSrcSize)
 
static HRESULT GRAYCALL Decompress1 (void *pDest, size_t nDestSizeMax, const BYTE *pSrc, size_t nSrcSize)
 

Protected Types

typedef int ZRET_t
 

Protected Member Functions

void InitializeInt ()
 
void CleanupInt ()
 

Protected Attributes

void * m_pzstm
 pointer to private/opaque bz_stream BZ2 implementation. More...
 

Detailed Description

BZ2 stream compress or decompress common base. BZ2 has better Huffman compression than ZIP. similar to DeflateStream in .NET. (optionally similar to GZipStream) Handles HTTP Content-Encoding: bzip2 similar to ZStream and com.jcraft.jBZ2.ZStream

Member Typedef Documentation

◆ ZRET_t

typedef int GrayLib::cStreamBZ2Base::ZRET_t
protected

Constructor & Destructor Documentation

◆ cStreamBZ2Base()

GrayLib::cStreamBZ2Base::cStreamBZ2Base ( )

◆ ~cStreamBZ2Base()

virtual GrayLib::cStreamBZ2Base::~cStreamBZ2Base ( )
virtual

Member Function Documentation

◆ CleanupInt()

void GrayLib::cStreamBZ2Base::CleanupInt ( )
protected

◆ Compress1()

static HRESULT GRAYCALL GrayLib::cStreamBZ2Base::Compress1 ( BYTE *  pDest,
size_t  nDestSizeMax,
const void *  pSrc,
size_t  nSrcSize 
)
static

◆ Decompress1()

static HRESULT GRAYCALL GrayLib::cStreamBZ2Base::Decompress1 ( void *  pDest,
size_t  nDestSizeMax,
const BYTE *  pSrc,
size_t  nSrcSize 
)
static

◆ FlushX()

virtual HRESULT GrayLib::cStreamBZ2Base::FlushX ( )
pure virtual

◆ GetHResultFrom()

static HRESULT GRAYCALL GrayLib::cStreamBZ2Base::GetHResultFrom ( ZRET_t  izRet)
static

◆ InitializeInt()

void GrayLib::cStreamBZ2Base::InitializeInt ( )
protected

◆ UNITTEST_FRIEND()

GrayLib::cStreamBZ2Base::UNITTEST_FRIEND ( cStreamBZ2Base  )

Member Data Documentation

◆ m_pzstm

void* GrayLib::cStreamBZ2Base::m_pzstm
protected

pointer to private/opaque bz_stream BZ2 implementation.


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