//
//  base64 encoding and decoding with C++.
//  Version: 1.01.00
//  Original source code at https://renenyffenegger.ch/notes/development/Base64/Encoding-and-decoding-base-64-with-cpp
//

#ifndef BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A
#define BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A

#include "glmString.h"

namespace glm
{
	extern GLM_CORE_API GlmString base64_encode(unsigned char const* string, unsigned int len);
	
	extern GLM_CORE_API GlmString base64_decode(unsigned char const* encoded_string, unsigned int len);
	inline GlmString base64_decode(const GlmString& encoded_string)	{	return base64_decode((unsigned char const*)encoded_string.c_str(), (unsigned int)encoded_string.size());	}
}

#endif /* BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A */