AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Base64.h
1
6#pragma once
7
8#ifdef __APPLE__
9
10#ifdef __clang__
11#pragma clang diagnostic ignored "-Wdeprecated-declarations"
12#endif // __clang__
13
14#ifdef __GNUC__
15#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
16#endif // __GNUC__
17
18#endif // __APPLE__
19
20#include <aws/core/Core_EXPORTS.h>
21#include <aws/core/utils/Array.h>
22#include <aws/core/utils/memory/stl/AWSString.h>
23
24namespace Aws
25{
26 namespace Utils
27 {
28 namespace Base64
29 {
30
34 class AWS_CORE_API Base64
35 {
36 public:
37 Base64(const char *encodingTable = nullptr);
38
45
50
55 static size_t CalculateBase64DecodedLength(const Aws::String& b64input);
59 static size_t CalculateBase64EncodedLength(const ByteBuffer& buffer);
60
61 private:
62 char m_mimeBase64EncodingTable[64];
63 uint8_t m_mimeBase64DecodingTable[256];
64
65 };
66
67 } // namespace Base64
68 } // namespace Utils
69} // namespace Aws
ByteBuffer Decode(const Aws::String &) const
Base64(const char *encodingTable=nullptr)
static size_t CalculateBase64DecodedLength(const Aws::String &b64input)
Aws::String Encode(const ByteBuffer &) const
static size_t CalculateBase64EncodedLength(const ByteBuffer &buffer)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97