API Documentation
Loading...
Searching...
No Matches
Base64Encoder.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Buffer.h>
4#include <NDEVR/BaseValues.h>
5namespace NDEVR
6{
7 class File;
8 class String;
9 /**--------------------------------------------------------------------------------------------------
10 \brief Functions for converting to and from Base64 https://en.wikipedia.org/wiki/Base64
11
12 **/
14 {
15 public:
17 static String EncodeToBase64(const uint01* buf, uint04 size);
18 static uint04 pos_of_char(const uint01 chr);
19 static Buffer<uint01> DecodeFromBase64(String encoded_string, bool remove_linebreaks);
20 };
21}
#define NDEVR_BASE_API
Definition DLLInfo.h:57
Functions for converting to and from Base64 https://en.wikipedia.org/wiki/Base64.
Definition Base64Encoder.h:14
static uint04 pos_of_char(const uint01 chr)
static String EncodeToBase64(const uint01 *buf, uint04 size)
static Buffer< uint01 > DecodeFromBase64(String encoded_string, bool remove_linebreaks)
static String EncodeToBase64(File file)
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
The core String class for the NDEVR API.
Definition String.h:69
Definition ACIColor.h:37
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:80
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96