Botan
3.6.1
Crypto and TLS for C&
src
lib
compression
bzip2
bzip2.h
Go to the documentation of this file.
1
/*
2
* Bzip2 Compressor
3
* (C) 2001 Peter J Jones
4
* 2001-2007,2014 Jack Lloyd
5
*
6
* Botan is released under the Simplified BSD License (see license.txt)
7
*/
8
9
#ifndef BOTAN_BZIP2_H_
10
#define BOTAN_BZIP2_H_
11
12
#include <botan/compression.h>
13
14
namespace
Botan
{
15
16
/**
17
* Bzip2 Compression
18
*/
19
class
BOTAN_PUBLIC_API
(2, 0)
Bzip2_Compression
final
:
public
Stream_Compression
{
20
public
:
21
std::string
name
()
const override
{
return
"Bzip2_Compression"
; }
22
23
private
:
24
std::unique_ptr<Compression_Stream> make_stream(
size_t
comp_level)
const override
;
25
};
26
27
/**
28
* Bzip2 Deccompression
29
*/
30
class
BOTAN_PUBLIC_API
(2, 0)
Bzip2_Decompression
final
:
public
Stream_Decompression
{
31
public
:
32
std::string
name
()
const override
{
return
"Bzip2_Decompression"
; }
33
34
private
:
35
std::unique_ptr<Compression_Stream> make_stream()
const override
;
36
};
37
38
}
// namespace Botan
39
40
#endif
Botan::Bzip2_Compression
Definition
bzip2.h:19
Botan::Bzip2_Compression::name
std::string name() const override
Definition
bzip2.h:21
Botan::Bzip2_Decompression
Definition
bzip2.h:30
Botan::Bzip2_Decompression::name
std::string name() const override
Definition
bzip2.h:32
Botan::Stream_Compression
Definition
compression.h:211
Botan::Stream_Decompression
Definition
compression.h:233
final
int(* final)(unsigned char *, CTX *)
Definition
commoncrypto_hash.cpp:29
BOTAN_PUBLIC_API
#define BOTAN_PUBLIC_API(maj, min)
Definition
compiler.h:31
Botan
Definition
alg_id.cpp:13
Generated by
1.12.0