Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Base64.h File Reference
#include "Stroika/Foundation/StroikaPreComp.h"
#include <string>
#include <vector>
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Common/Common.h"
#include "Stroika/Foundation/Memory/BLOB.h"
#include "Stroika/Foundation/Streams/InputStream.h"
#include "Stroika/Foundation/Streams/OutputStream.h"

Go to the source code of this file.

Namespaces

namespace  Stroika::Foundation
 

Functions

string Stroika::Foundation::Cryptography::Encoding::Algorithm::Base64::Encode (const Streams::InputStream::Ptr< byte > &from, const Options &o={})
 

Detailed Description

TODO:

 @todo   EncodeBase64 should return STROIKA string, or BLOB - not std::string? Or maybe std::string
         best - but document why - cuz always ascii data so more compact?? No - not good reason cuz
         we can construct a SUBTYPE of String that takes advantage of it.

 @todo   DecodeBase64() should have an overload taking BinaryInputStream, and EncodeBase64()
         should have an overload with BinaryOutputStream (keeping existing overloads).

 @todo   Tons todo optimizing this implementation (to not use temporary objects and
         avoiding copying).

Definition in file Base64.h.

Function Documentation

◆ Encode()

string Stroika::Foundation::Cryptography::Encoding::Algorithm::Base64::Encode ( const Streams::InputStream::Ptr< byte > &  from,
const Options &  o = {} 
)
Note
BLOB overload redundant, but provided since slight performance tweak (

Definition at line 301 of file Base64.cpp.