Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::Base64Converter Class Referencefinal

BASE64 converter. More...

#include <Base64Converter.h>

Inheritance diagram for sese::Base64Converter:
sese::NotInstantiable

Public Types

using OutputStream = sese::io::OutputStream
 
using InputStream = sese::io::InputStream
 
using CodePage = const unsigned char *
 

Public Member Functions

 Base64Converter ()=delete
 
- Public Member Functions inherited from sese::NotInstantiable
 NotInstantiable ()=delete
 
virtual ~NotInstantiable ()=default
 
 NotInstantiable (const NotInstantiable &)=delete
 
NotInstantiableoperator= (const NotInstantiable &)=delete
 

Static Public Member Functions

static void encode (const InputStream::Ptr &src, const OutputStream::Ptr &dest)
 
static void encode (InputStream *src, OutputStream *dest)
 
static void decode (const InputStream::Ptr &src, const OutputStream::Ptr &dest)
 
static void decode (InputStream *src, OutputStream *dest)
 
static bool encodeBase62 (InputStream *input, OutputStream *output) noexcept
 
static bool decodeBase62 (InputStream *input, OutputStream *output) noexcept
 Decode according to the Base62 code table.
 
static bool encodeInteger (size_t num, OutputStream *output) noexcept
 
static int64_t decodeBuffer (const unsigned char *buffer, size_t size) noexcept
 

Detailed Description

BASE64 converter.

Member Typedef Documentation

◆ CodePage

using sese::Base64Converter::CodePage = const unsigned char *

◆ InputStream

◆ OutputStream

Constructor & Destructor Documentation

◆ Base64Converter()

sese::Base64Converter::Base64Converter ( )
delete

Member Function Documentation

◆ decode() [1/2]

void Base64Converter::decode ( const InputStream::Ptr & src,
const OutputStream::Ptr & dest )
static

References decode().

Referenced by decode().

◆ decode() [2/2]

void Base64Converter::decode ( InputStream * src,
OutputStream * dest )
static

◆ decodeBase62()

bool Base64Converter::decodeBase62 ( InputStream * input,
OutputStream * output )
staticnoexcept

Decode according to the Base62 code table.

Warning
Note that the decoding method of this function is similar to Base64, but it is not standard Base62 decoding
Parameters
inputInput stream
outputOutput stream
Returns
Encoding result

References ToBigEndian32().

◆ decodeBuffer()

int64_t Base64Converter::decodeBuffer ( const unsigned char * buffer,
size_t size )
staticnoexcept

References base62_code_page.

◆ encode() [1/2]

◆ encode() [2/2]

void Base64Converter::encode ( InputStream * src,
OutputStream * dest )
static

◆ encodeBase62()

bool Base64Converter::encodeBase62 ( InputStream * input,
OutputStream * output )
staticnoexcept

Encode according to the Base62 code table

Warning
Note that the encoding method of this function is similar to Base64, but it is not standard Base62 encoding
Parameters
inputInput stream
outputOutput stream
Returns
Encoding result

References FromBigEndian32().

◆ encodeInteger()

bool Base64Converter::encodeInteger ( size_t num,
OutputStream * output )
staticnoexcept

References base62_code_page.


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