Botan  2.11.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::Stream_Compression Class Referenceabstract

#include <compression.h>

Inheritance diagram for Botan::Stream_Compression:

Public Member Functions

void clear () final override
 
void finish (secure_vector< uint8_t > &buf, size_t offset) final override
 
void update (secure_vector< uint8_t > &buf, size_t offset, bool flush) final override
 

Detailed Description

Used to implement compression using Compression_Stream

Definition at line 193 of file compression.h.

Member Function Documentation

◆ clear()

void Botan::Stream_Compression::clear ( )
finaloverride

Definition at line 50 of file compress_utils.cpp.

51  {
52  m_stream.reset();
53  }

Referenced by finish().

◆ finish()

void Botan::Stream_Compression::finish ( secure_vector< uint8_t > &  buf,
size_t  offset 
)
finaloverride

Definition at line 118 of file compress_utils.cpp.

119  {
120  BOTAN_ASSERT(m_stream, "Initialized");
121  process(buf, offset, m_stream->finish_flag());
122  clear();
123  }
bool BigInt BigInt size_t size_t const std::vector< uint8_t > size_t offset
Definition: numthry.h:271
const uint8_t * buf
Definition: ffi.h:371
#define BOTAN_ASSERT(expr, assertion_made)
Definition: assert.h:55
void clear() final override

References BOTAN_ASSERT, buf, clear(), and Botan::offset.

◆ update()

void Botan::Stream_Compression::update ( secure_vector< uint8_t > &  buf,
size_t  offset,
bool  flush 
)
finaloverride

Definition at line 112 of file compress_utils.cpp.

113  {
114  BOTAN_ASSERT(m_stream, "Initialized");
115  process(buf, offset, flush ? m_stream->flush_flag() : m_stream->run_flag());
116  }
bool BigInt BigInt size_t size_t const std::vector< uint8_t > size_t offset
Definition: numthry.h:271
const uint8_t * buf
Definition: ffi.h:371
#define BOTAN_ASSERT(expr, assertion_made)
Definition: assert.h:55

References BOTAN_ASSERT, buf, and Botan::offset.


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