Botan  1.11.15
Public Member Functions | Protected Types | Protected Member Functions
Botan::Zlib_Style_Stream< Stream, ByteType > Class Template Reference

#include <compress_utils.h>

Inheritance diagram for Botan::Zlib_Style_Stream< Stream, ByteType >:
Botan::Compression_Stream

List of all members.

Public Member Functions

size_t avail_in () const override
size_t avail_out () const override
virtual u32bit finish_flag () const =0
virtual u32bit flush_flag () const =0
void next_in (byte *b, size_t len) override
void next_out (byte *b, size_t len) override
virtual bool run (u32bit flags)=0
virtual u32bit run_flag () const =0
 Zlib_Style_Stream ()
 ~Zlib_Style_Stream ()

Protected Types

typedef Stream stream_t

Protected Member Functions

Compression_Alloc_Infoalloc ()
stream_tstreamp ()

Detailed Description

template<typename Stream, typename ByteType>
class Botan::Zlib_Style_Stream< Stream, ByteType >

Wrapper for Zlib/Bzlib/LZMA stream types

Definition at line 46 of file compress_utils.h.


Member Typedef Documentation

template<typename Stream , typename ByteType >
typedef Stream Botan::Zlib_Style_Stream< Stream, ByteType >::stream_t [protected]

Definition at line 78 of file compress_utils.h.


Constructor & Destructor Documentation

template<typename Stream , typename ByteType >
Botan::Zlib_Style_Stream< Stream, ByteType >::Zlib_Style_Stream ( ) [inline]

Definition at line 65 of file compress_utils.h.

References Botan::clear_mem().

         {
         clear_mem(&m_stream, 1);
         m_allocs.reset(new Compression_Alloc_Info);
         }
template<typename Stream , typename ByteType >
Botan::Zlib_Style_Stream< Stream, ByteType >::~Zlib_Style_Stream ( ) [inline]

Definition at line 71 of file compress_utils.h.

References Botan::clear_mem().

         {
         clear_mem(&m_stream, 1);
         m_allocs.reset();
         }

Member Function Documentation

template<typename Stream , typename ByteType >
Compression_Alloc_Info* Botan::Zlib_Style_Stream< Stream, ByteType >::alloc ( ) [inline, protected]

Definition at line 82 of file compress_utils.h.

{ return m_allocs.get(); }
template<typename Stream , typename ByteType >
size_t Botan::Zlib_Style_Stream< Stream, ByteType >::avail_in ( ) const [inline, override, virtual]

Implements Botan::Compression_Stream.

Definition at line 61 of file compress_utils.h.

{ return m_stream.avail_in; }
template<typename Stream , typename ByteType >
size_t Botan::Zlib_Style_Stream< Stream, ByteType >::avail_out ( ) const [inline, override, virtual]

Implements Botan::Compression_Stream.

Definition at line 63 of file compress_utils.h.

{ return m_stream.avail_out; }
virtual u32bit Botan::Compression_Stream::finish_flag ( ) const [pure virtual, inherited]
virtual u32bit Botan::Compression_Stream::flush_flag ( ) const [pure virtual, inherited]
template<typename Stream , typename ByteType >
void Botan::Zlib_Style_Stream< Stream, ByteType >::next_in ( byte b,
size_t  len 
) [inline, override, virtual]

Implements Botan::Compression_Stream.

Definition at line 49 of file compress_utils.h.

         {
         m_stream.next_in = reinterpret_cast<ByteType*>(b);
         m_stream.avail_in = len;
         }
template<typename Stream , typename ByteType >
void Botan::Zlib_Style_Stream< Stream, ByteType >::next_out ( byte b,
size_t  len 
) [inline, override, virtual]

Implements Botan::Compression_Stream.

Definition at line 55 of file compress_utils.h.

         {
         m_stream.next_out = reinterpret_cast<ByteType*>(b);
         m_stream.avail_out = len;
         }
virtual bool Botan::Compression_Stream::run ( u32bit  flags) [pure virtual, inherited]
virtual u32bit Botan::Compression_Stream::run_flag ( ) const [pure virtual, inherited]
template<typename Stream , typename ByteType >
stream_t* Botan::Zlib_Style_Stream< Stream, ByteType >::streamp ( ) [inline, protected]

Definition at line 80 of file compress_utils.h.

{ return &m_stream; }

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