Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
Base64.hpp
Go to the documentation of this file.
1/*
2Copyright (C) 2021,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
20
21#ifndef AEONGAMES_BASE64_H
22#define AEONGAMES_BASE64_H
23
25#include <string>
26#include <string_view>
27#include <cstdint>
28
29namespace AeonGames
30{
39 DLL std::string Base64Encode ( const uint8_t* aData, size_t aDataSize, bool aSplit = true );
47 DLL std::string Base64Decode ( const uint8_t* aData, size_t aDataSize );
52 DLL std::string Base64Encode ( std::string_view aData );
57 DLL std::string Base64Decode ( std::string_view aData );
58}
59
60#endif
Platform-specific macros, includes, and DLL export/import definitions.
<- This is here just for the literals
Definition AABB.hpp:31
DLL std::string Base64Encode(const uint8_t *aData, size_t aDataSize, bool aSplit=true)
Encode a binary string.
Definition Base64.cpp:26
DLL std::string Base64Decode(const uint8_t *aData, size_t aDataSize)
Decode a base64 string.
Definition Base64.cpp:68