1 #ifndef BASE64_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 2 #define BASE64_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 27 void swap(std::vector<unsigned char>& rhs) {
41 const std::size_t s =
size();
44 const unsigned char *d1 =
data();
45 const unsigned char *d2 = rhs.
data();
46 for(std::size_t i=0;i<s;i++) {
54 return !(*
this == rhs);
66 #endif // BASE64_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
std::size_t m_unownedSize
std::vector< unsigned char > DecodeBase64(const std::string &input)
std::vector< unsigned char > m_data
const unsigned char * m_unownedData
void operator>>(const Node &node, Binary &binary)
bool operator!=(const Binary &rhs) const
bool operator==(const Binary &rhs) const
std::string EncodeBase64(const unsigned char *data, std::size_t size)
void swap(std::vector< unsigned char > &rhs)
const unsigned char * data() const
Binary(const unsigned char *data, std::size_t size)