LeviLamina
Loading...
Searching...
No Matches
Base64.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace rtc {
6
7class Base64 {
8public:
9 // Base64 inner types define
10 enum class DecodeOption : int {
11 // bitfield representation
12 ParseStrict = 1 << 0,
13 ParseWhite = 1 << 1,
14 PadYes = 1 << 2,
15 PadAny = 1 << 3,
16 TermBuffer = 1 << 4,
17 TermChar = 1 << 5,
18 ParseMask = ParseStrict | ParseWhite,
19 ParseAny = ParseStrict | ParseWhite,
20 PadMask = PadYes | PadAny,
21 PadNo = PadYes | PadAny,
22 Strict = ParseStrict | PadYes | TermBuffer,
23 Lax = ParseStrict | ParseWhite | PadAny | TermChar,
24 TermMask = TermBuffer | TermChar,
25 TermAny = TermBuffer | TermChar,
26 };
27
28public:
29 // static functions
30 // NOLINTBEGIN
31 MCNAPI static void EncodeFromArray(void const* data, uint64 len, ::std::string* result);
32 // NOLINTEND
33
34public:
35 // static variables
36 // NOLINTBEGIN
37 MCNAPI static ::std::add_lvalue_reference_t<char const[]> Base64Table();
38
39 MCNAPI static ::std::add_lvalue_reference_t<uchar const[]> DecodeTable();
40 // NOLINTEND
41};
42
43} // namespace rtc
Definition Base64.h:7
static MCAPI ::std::add_lvalue_reference_t< char const[]> Base64Table()
static MCAPI ::std::add_lvalue_reference_t< uchar const[]> DecodeTable()
static MCAPI void EncodeFromArray(void const *data, uint64 len, ::std::string *result)