libfly  6.2.2
C++20 utility library for Linux, macOS, and Windows
fly::coders::Base64Coder Class Reference

#include <base64_coder.hpp>

Inheritance diagram for fly::coders::Base64Coder:
Collaboration diagram for fly::coders::Base64Coder:

Protected Member Functions

bool encode_internal (std::istream &decoded, std::ostream &encoded) override
 
bool decode_internal (std::istream &encoded, std::ostream &decoded) override
 

Additional Inherited Members

- Public Member Functions inherited from fly::coders::Encoder
virtual ~Encoder ()=default
 
virtual bool encode_string (const std::string &decoded, std::string &encoded)
 
virtual bool encode_file (const std::filesystem::path &decoded, const std::filesystem::path &encoded)
 
- Public Member Functions inherited from fly::coders::Decoder
virtual ~Decoder ()=default
 
bool decode_string (const std::string &encoded, std::string &decoded)
 
bool decode_file (const std::filesystem::path &encoded, const std::filesystem::path &decoded)
 

Detailed Description

A Base64 encoder and decoder.

Author
Timothy Flynn (trfly.nosp@m.nn89.nosp@m.@pm.m.nosp@m.e)
Version
May 3, 2020

Member Function Documentation

◆ decode_internal()

bool fly::coders::Base64Coder::decode_internal ( std::istream &  encoded,
std::ostream &  decoded 
)
overrideprotectedvirtual

Base64 decode a stream.

Parameters
encodedStream holding the contents to decode.
decodedStream to store the decoded contents.
Returns
True if the input stream was successfully decoded.

Implements fly::coders::Decoder.

◆ encode_internal()

bool fly::coders::Base64Coder::encode_internal ( std::istream &  decoded,
std::ostream &  encoded 
)
overrideprotectedvirtual

Base64 encode a stream.

Parameters
decodedStream holding the contents to encode.
encodedStream to store the encoded contents.
Returns
True if the input stream was successfully encoded.

Implements fly::coders::Encoder.


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