GNU Radio's SATNOGS Package
base64.h File Reference
#include <iostream>

Go to the source code of this file.

Functions

static bool is_base64 (unsigned char c)
 
static std::string base64_encode (unsigned char const *bytes_to_encode, unsigned int in_len)
 
static std::string base64_decode (std::string const &encoded_string)
 

Variables

static const std::string base64_chars
 

Function Documentation

◆ base64_decode()

static std::string base64_decode ( std::string const &  encoded_string)
static

References base64_chars, i, is_base64(), and j.

◆ base64_encode()

static std::string base64_encode ( unsigned char const *  bytes_to_encode,
unsigned int  in_len 
)
static

References base64_chars, i, and j.

◆ is_base64()

static bool is_base64 ( unsigned char  c)
inlinestatic

Referenced by base64_decode().

Variable Documentation

◆ base64_chars

const std::string base64_chars
static
Initial value:
= "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/"

Referenced by base64_decode(), and base64_encode().