Go to the documentation of this file. 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
const unsigned char * data() const
Binary(const unsigned char *data, std::size_t size)
std::vector< unsigned char > DecodeBase64(const std::string &input)
std::size_t m_unownedSize
bool operator!=(const Binary &rhs) const
void operator>>(const Node &node, Binary &binary)
std::vector< unsigned char > m_data
const unsigned char * m_unownedData
std::string EncodeBase64(const unsigned char *data, std::size_t size)
bool operator==(const Binary &rhs) const
void swap(std::vector< unsigned char > &rhs)
mp2p_icp
Author(s):
autogenerated on Wed Oct 23 2024 02:45:38