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

#include <compression.h>

Inheritance diagram for Botan::Stream_Decompression:

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) final override
 

Detailed Description

FIXME add doc

Definition at line 216 of file compression.h.

Member Function Documentation

◆ clear()

void Botan::Stream_Decompression::clear ( )
finaloverride

Definition at line 125 of file compress_utils.cpp.

126  {
127  m_stream.reset();
128  }

◆ finish()

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

Definition at line 187 of file compress_utils.cpp.

188  {
189  if(buf.size() != offset || m_stream.get())
190  process(buf, offset, m_stream->finish_flag());
191 
192  if(m_stream.get())
193  throw Invalid_State(name() + " finished but not at stream end");
194  }
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
char * name
Definition: ffi.h:330

References buf, name, and Botan::offset.

◆ update()

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

Definition at line 182 of file compress_utils.cpp.

183  {
184  process(buf, offset, m_stream->run_flag());
185  }
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

References buf, and Botan::offset.


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