bzip2.h

来自「含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种Chec」· C头文件 代码 · 共 60 行

H
60
字号
/************************************************** Bzip Compressor Header File                    ** (C) 1999-2002 The Botan Project                **************************************************/#include <botan/filter.h>#ifndef BOTAN_EXT_BZIP2_H__#define BOTAN_EXT_BZIP2_H__namespace Botan {class Bzip_Compression : public Filter   {   public:      void write(const byte input[], u32bit length);      void start_msg();      void end_msg();      void flush();      Bzip_Compression(u32bit l = 9) : level((l >= 9) ? 9 : l)         { ready = false; bz = 0; }      ~Bzip_Compression() { clear(); }   private:      static const u32bit BUFFERSIZE = DEFAULT_BUFFERSIZE;      const u32bit level;      void clear();      SecureBuffer<byte, BUFFERSIZE> buffer;      struct bz_stream_wrapper* bz;      bool ready;   };class Bzip_Decompression : public Filter   {   public:      void write(const byte input[], u32bit length);      void start_msg();      void end_msg();      Bzip_Decompression(bool s = false) : small_mem(s)         { no_writes = true; bz = 0;}      ~Bzip_Decompression() { clear(); }   private:      static const u32bit BUFFERSIZE = DEFAULT_BUFFERSIZE;      const bool small_mem;      void clear();      SecureBuffer<byte, BUFFERSIZE> buffer;      struct bz_stream_wrapper* bz;      bool no_writes;   };// DEPRECATED ALIASEStypedef Bzip_Compression Bzip_Compress;typedef Bzip_Decompression Bzip_Decompress;}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?