summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-20 16:59:26 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-20 16:59:26 +0200
commitf920a3b01746a183de6110f158e19b59af4b2ef0 (patch)
treeb7b9a89f06d5358966ae3abed45dbd81d478a397
parent0a18d9708d4ca04b9c56521eed45dc372d5e893e (diff)
I literally don't know why this was static
-rw-r--r--modules/codec/c++/base64.hpp6
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());
}