Fast length limited string concatenation that assume we already point to the end of the string. Returns the new end of the string so we do not need to calculate the length of the input string or output string
| 520 | // the end of the string. Returns the new end of the string so we do not need |
| 521 | // to calculate the length of the input string or output string |
| 522 | static char* ConcatString(char* w_ptr, const char* w_ptr_end, const char* str) |
| 523 | { |
| 524 | while ((w_ptr != w_ptr_end) && *str) |
| 525 | { |
| 526 | *w_ptr++ = *str++; |
| 527 | } |
| 528 | return w_ptr; |
| 529 | } |
| 530 | |
| 531 | // Low level string concatenation to avoid the overhead of dmSnPrintf and having to call strlen |
| 532 | static const char* GetProfilerString(const char* socket_name, char* buffer, uint32_t buffer_size) |