summaryrefslogtreecommitdiff
path: root/modules/codec/c++/data.hpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-18 15:15:11 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-18 15:15:11 +0200
commite732c6efd96a22296591f3becc1c63fc80299938 (patch)
tree903a15443596df0af9a588d4ef32004f8866fa54 /modules/codec/c++/data.hpp
parentf81526d2b8f4b618eab183d1703e045989104f3f (diff)
Adding base64 for token preparation
Diffstat (limited to 'modules/codec/c++/data.hpp')
-rw-r--r--modules/codec/c++/data.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index 8eff115..b3e4fe2 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -590,13 +590,14 @@ private:
std::string value_;
public:
data() = default;
+ data(uint64_t size__){
+ value_.resize(size__);
+ }
+
SAW_DEFAULT_COPY(data);
SAW_DEFAULT_MOVE(data);
data(std::string value__):value_{std::move(value__)}{}
- data(std::size_t size_){
- value_.resize(size_);
- }
/**
* Return the length of the string.