File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,23 @@ class base64
33
33
// NOTE: The default behaviour of backend (lib64)
34
34
// is to add a newline every 72 (encoded) characters output.
35
35
// This may 'break' longer uris and json variables
36
- static String encode (const uint8_t * data, size_t length, bool doNewLines = true );
37
- static String inline encode (const String& text, bool doNewLines = true )
36
+ static String encode (const uint8_t * data, size_t length, bool doNewLines);
37
+ static inline String encode (const String& text, bool doNewLines)
38
38
{
39
39
return encode ( (const uint8_t *) text.c_str (), text.length (), doNewLines );
40
40
}
41
+
42
+ // esp32 compat:
43
+
44
+ static inline String encode (const uint8_t * data, size_t length)
45
+ {
46
+ return encode (data, length, false );
47
+ }
48
+
49
+ static inline String encode (const String& text)
50
+ {
51
+ return encode (text, false );
52
+ }
41
53
private:
42
54
};
43
55
You can’t perform that action at this time.
0 commit comments