acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
base64.h
1
#pragma once
2
3
4
5
//namespace str
6
//{
7
8
9
class
CLASS_DECL_ACME base64 :
10
virtual
public
::particle
11
{
12
public
:
13
14
enum
e_mode
15
{
16
17
mode_normal,
18
mode_url_safe,
19
mode_ex,
20
21
};
22
23
protected
:
24
25
26
uchar etable[3][256];
27
uchar dtable[256];
28
29
30
public
:
31
32
33
base64();
34
virtual
~base64();
35
36
38
39
40
// from arbitrary binary data to Base 64
41
void
encode
(
::file::file
* pfileOutput, ::u8 * pdata, memsize size, e_mode emode);
42
void
encode
(
::file::file
* pfileOutput,
::file::file
* pfileInput, e_mode emode = mode_normal);
43
//string encode(memory_base & memory, e_mode emode = mode_normal);
44
string
encode
(const ::block &
block
, e_mode emode = mode_normal);
45
//string encode(void * point, ::collection::count ca, e_mode emode = mode_normal);
46
//string encode(const ::scoped_string & scopedstr, e_mode emode = mode_normal);
47
//string encode_element(::matter & matter, e_mode emode = mode_normal);
48
49
// from Base 64 to binary data
50
bool
decode(
::file::file
* pfileOutput,
::file::file
* pfileInput);
51
::i64 decode(const ::block &
block
,
::file::file
* pfileInput);
52
bool
decode(
memory_base
& storageBinary, const ::scoped_string & scopedstrBase64);
53
::i64 decode(const ::block &
block
, const ::scoped_string & scopedstrBase64);
54
string
decode(const ::scoped_string & scopedstr);
55
//bool decode(::matter & matter, const ::scoped_string & scopedstrBase64);
56
57
bool
is(::i32 iChar);
58
59
};
60
61
//
62
//} // namespace str
63
//
64
65
base64::encode
void encode(::file::file *pfileOutput, ::u8 *pdata, memsize size, e_mode emode)
virtual void initialize(::particle * pparticle) override;
Definition
base64.cpp:395
file::file
Definition
file.h:33
memory_base
Definition
memory_base.h:92
block
Definition
block.h:46
prototype
string
base64.h
Generated by
1.17.0