Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 87cb279

Browse filesBrowse 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
Copy full SHA for 87cb279

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎api/String.h

Copy file name to clipboardExpand all lines: api/String.h
+1Lines changed: 1 addition & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.