Skip to content

Commit 87cb279

Browse files
matthijskooijmanaentinger
authored andcommitted
Add String::concat(const uint8_t *, unsigned int) version
This just calls the char* version, but allows calling the method with a uint8_t* as well (which is not uncommon for buffers).
1 parent c11b4c3 commit 87cb279

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: api/String.h

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ class String
108108
unsigned char concat(const String &str);
109109
unsigned char concat(const char *cstr);
110110
unsigned char concat(const char *cstr, unsigned int length);
111+
unsigned char concat(const uint8_t *cstr, unsigned int length) {return concat((const char*)cstr, length);}
111112
unsigned char concat(char c);
112113
unsigned char concat(unsigned char num);
113114
unsigned char concat(int num);

0 commit comments

Comments
 (0)