From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Wasabi/bfc/util/base64.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Src/Wasabi/bfc/util/base64.h (limited to 'Src/Wasabi/bfc/util/base64.h') diff --git a/Src/Wasabi/bfc/util/base64.h b/Src/Wasabi/bfc/util/base64.h new file mode 100644 index 00000000..fc4fd658 --- /dev/null +++ b/Src/Wasabi/bfc/util/base64.h @@ -0,0 +1,16 @@ +#ifndef _BASE64_H +#define _BASE64_H + +#include + +class Base64 { +public: + static int decode(MemBlock &h64, MemBlock &htext); + static int decode(MemBlock &h64, MemBlock &htext); + static int encode(MemBlock &htext, MemBlock &h64, int linelength); + static int encode(MemBlock &htext, MemBlock &h64, int linelength); +private: + static char encodingTable[64]; +}; + +#endif -- cgit