diff options
Diffstat (limited to 'modules/codec/c++/base64.hpp')
-rw-r--r-- | modules/codec/c++/base64.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/codec/c++/base64.hpp b/modules/codec/c++/base64.hpp index 56ba79e..89e2b48 100644 --- a/modules/codec/c++/base64.hpp +++ b/modules/codec/c++/base64.hpp @@ -67,7 +67,7 @@ private: } public: template<typename FromEncode> - static error_or<void> encode(const data<Schema, FromEncode>& from, data<Schema,encode::Base64>& to){ + error_or<void> encode(const data<Schema, FromEncode>& from, data<Schema,encode::Base64>& to){ std::string b64_str; try { @@ -114,7 +114,7 @@ public: } template<typename ToDecode> - static error_or<void> decode(data<Schema,encode::Base64>& from, data<Schema, ToDecode>& to){ + error_or<void> decode(data<Schema,encode::Base64>& from, data<Schema, ToDecode>& to){ uint64_t b64_len = from.size(); if((b64_len % 4) != 0){ return make_error<err::invalid_state>("Base64 String is not padded"); @@ -126,7 +126,7 @@ public: std::string to_str; for(uint64_t i = 0u; i < b64_len && from.at(i) != '='; ++i){ - auto eo_pos = find_base64_char_pos(from.at(i)); + auto eo_pos = this->find_base64_char_pos(from.at(i)); if(eo_pos.is_error()){ return std::move(eo_pos.get_error()); } |