mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
e8452a79e8
Also optimized the base64 encoder to avoid creating endless memory copies, thanks to using std::string which is a really poor container for this kind of stuff when workig with larger blocks of data.
12 lines
398 B
C
12 lines
398 B
C
//
|
|
// base64 encoding and decoding with C++.
|
|
// Version: 1.01.00
|
|
//
|
|
|
|
#ifndef BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A
|
|
#define BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A
|
|
|
|
TArray<uint8_t> base64_encode(unsigned char const* bytes_to_encode, size_t in_len);
|
|
void base64_decode(void* memory, size_t len, const char* encoded_string);
|
|
|
|
#endif /* BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A */
|