Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
decompressor.hpp
1 #pragma once
2 
3 #include "telnetpp/options/mccp/codec.hpp"
4 
5 #include <memory>
6 
8 
9 //* =========================================================================
11 //* =========================================================================
12 class TELNETPP_EXPORT decompressor // NOLINT
14 {
15 public:
16  //* =====================================================================
18  //* =====================================================================
19  decompressor();
20 
21  //* =====================================================================
23  //* =====================================================================
24  ~decompressor() override;
25 
26 private:
27  //* =====================================================================
29  //* =====================================================================
30  void do_start() override;
31 
32  //* =====================================================================
34  //* =====================================================================
35  void do_finish(continuation const &cont) override;
36 
37  //* =====================================================================
48  //* =====================================================================
49  telnetpp::bytes transform_chunk(
50  telnetpp::bytes data, continuation const &cont) override;
51 
52  struct impl;
53  std::unique_ptr<impl> pimpl_;
54 };
55 
56 } // namespace telnetpp::options::mccp::zlib
Represents an object that can transform (encode or decode) arbitrary byte sequences....
Definition: codec.hpp:17
Represents an object that can decompress arbitrary byte sequences.
Definition: decompressor.hpp:14
Implementation of the compressor/decompressor functionality for use with a telnetpp::options::mccp::c...