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

#include <cStreamZLib.h>

Inheritance diagram for GrayLib::cStreamZLibBase:
GrayLib::cStreamZLibCompress GrayLib::cStreamZLibDecompress

Public Types

typedef int ZRET_t
 

Public Member Functions

 cStreamZLibBase ()
 
virtual ~cStreamZLibBase ()
 
virtual HRESULT FlushX ()=0
 
int get_DataTypeCode () const
 e.g. Z_ASCII More...
 
 UNITTEST_FRIEND (cStreamZLib)
 

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)
 

Public Attributes

struct z_stream_s * m_pzstm
 pointer to hidden/opaque/private zlib implementation. More...
 

Protected Member Functions

void InitializeInt ()
 
void CleanupInt ()
 

Detailed Description

ZLIB stream compress or decompress common base. similar to DeflateStream in .NET. (optionally similar to GZipStream) Handles HTTP Content-Encoding: deflate (optionally supports gzip) similar to ZStream and com.jcraft.jzlib.ZStream

Member Typedef Documentation

◆ ZRET_t

Constructor & Destructor Documentation

◆ cStreamZLibBase()

GrayLib::cStreamZLibBase::cStreamZLibBase ( )

◆ ~cStreamZLibBase()

virtual GrayLib::cStreamZLibBase::~cStreamZLibBase ( )
virtual

Member Function Documentation

◆ CleanupInt()

void GrayLib::cStreamZLibBase::CleanupInt ( )
protected

◆ Compress1()

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

◆ Decompress1()

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

◆ FlushX()

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

◆ get_DataTypeCode()

int GrayLib::cStreamZLibBase::get_DataTypeCode ( ) const

e.g. Z_ASCII

◆ GetHResultFrom()

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

◆ InitializeInt()

void GrayLib::cStreamZLibBase::InitializeInt ( )
protected

◆ UNITTEST_FRIEND()

GrayLib::cStreamZLibBase::UNITTEST_FRIEND ( cStreamZLib  )

Member Data Documentation

◆ m_pzstm

struct z_stream_s* GrayLib::cStreamZLibBase::m_pzstm

pointer to hidden/opaque/private zlib implementation.


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