Skip to content

Commit bf78968

Browse files
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 10f0bc0 commit bf78968

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
@@ -104,6 +104,7 @@ class String
104104
unsigned char concat(const String &str);
105105
unsigned char concat(const char *cstr);
106106
unsigned char concat(const char *cstr, unsigned int length);
107+
unsigned char concat(const uint8_t *cstr, unsigned int length) {return concat((const char*)cstr, length);}
107108
unsigned char concat(char c);
108109
unsigned char concat(unsigned char c);
109110
unsigned char concat(int num);

0 commit comments

Comments
 (0)