We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58b76a commit f126935Copy full SHA for f126935
source/utils/base64.h
@@ -30,8 +30,8 @@ class Base64 {
30
static std::string encode(const char* input, uint64_t length) {
31
return encode(input, length, true);
32
}
33
- static std::string encode(const std::string& input) {
34
- return encode(input.c_str(), strlen(input.c_str()));
+ static std::string encode(std::string_view input) {
+ return encode(input.data(), input.size());
35
36
static std::string decodeWithoutPadding(std::string_view input);
37
};
0 commit comments