Skip to content

Commit 75c1db5

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 6bea238 commit 75c1db5

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
@@ -111,6 +111,7 @@ class String
111111
unsigned char concat(const String &str);
112112
unsigned char concat(const char *cstr);
113113
unsigned char concat(const char *cstr, unsigned int length);
114+
unsigned char concat(const uint8_t *cstr, unsigned int length) {return concat((const char*)cstr, length);}
114115
unsigned char concat(char c);
115116
unsigned char concat(unsigned char num);
116117
unsigned char concat(int num);

0 commit comments

Comments
 (0)