From c3dd050ec7d7e775b62b0a8160ec4be4f671f035 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Mon, 19 Aug 2024 16:52:39 +0200 Subject: Allow easier conversion and extraction to stl data. Also fixing indent in json --- modules/codec/c++/base64.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/codec/c++') diff --git a/modules/codec/c++/base64.hpp b/modules/codec/c++/base64.hpp index fcd2f75..b65060e 100644 --- a/modules/codec/c++/base64.hpp +++ b/modules/codec/c++/base64.hpp @@ -30,6 +30,10 @@ public: return data_.at(i); } + std::string stl_string() const { + return data_; + } + bool operator==(const data& rhs) const { return data_ == rhs.data_; } -- cgit v1.2.3