5 #ifndef HERALD_BASE64_STRING_H
6 #define HERALD_BASE64_STRING_H
Strongly, rather than stringly, typed representation of Base64 String data. Prevents incorrect initia...
Definition: base64_string.h:18
std::string encoded() const noexcept
Returns the Base64 encoding of this class as a std::string.
Base64String(const Base64String &other)=delete
Deleted copy constructor to prevent temporary memory use.
static bool from(const std::string &original, Base64String &toInitialise) noexcept
Populates a Base64String from a normal std::string.
static Base64String encode(const Data &from) noexcept
Creates a Base64String from an arbitrary set of bytes.
Data decode() const noexcept
Decodes this Base64String's content into a Data instance.
Base64String(Base64String &&other)
Move Constructor.
~Base64String()
Custom destructor.
The main data workhorse class of the Herald API.
Definition: data.h:33
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15