Telnet++ 4.0.0.9
A C++ library for interacting with Telnet streams
Loading...
Searching...
No Matches
decompressor.hpp
1#pragma once
2
3#include "telnetpp/options/mccp/codec.hpp"
4
5#include <memory>
6
8
9//* =========================================================================
11//* =========================================================================
12class TELNETPP_EXPORT decompressor // NOLINT
14{
15public:
16 //* =====================================================================
18 //* =====================================================================
20
21 //* =====================================================================
23 //* =====================================================================
24 ~decompressor() override;
25
26private:
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:18
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...