Telnet++
A C++ library for interacting with Telnet streams
Classes | Public Member Functions | List of all members
telnetpp::options::mccp::zlib::decompressor Class Reference

Represents an object that can decompress arbitrary byte sequences. More...

#include <decompressor.hpp>

Inheritance diagram for telnetpp::options::mccp::zlib::decompressor:
telnetpp::options::mccp::decompressor

Classes

class  impl
 

Public Member Functions

 decompressor ()
 Constructor.
 
 ~decompressor () override
 Destructor.
 
std::tuple< telnetpp::u8stream, bool > decompress (telnetpp::u8 byte) override
 Decompress the given byte, and return a tuple of the decompressed data and a boolean that is set to true if this was the end of the decompression stream. More...
 
void end_decompression () override
 Ends the current decompression stream. More...
 

Detailed Description

Represents an object that can decompress arbitrary byte sequences.

Member Function Documentation

std::tuple< telnetpp::u8stream, bool > telnetpp::options::mccp::zlib::decompressor::decompress ( telnetpp::u8  byte)
overridevirtual

Decompress the given byte, and return a tuple of the decompressed data and a boolean that is set to true if this was the end of the decompression stream.

Implements telnetpp::options::mccp::decompressor.

void telnetpp::options::mccp::zlib::decompressor::end_decompression ( )
overridevirtual

Ends the current decompression stream.

Any further calls to decompress continue as if the stream were created fresh.

Implements telnetpp::options::mccp::decompressor.


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