MCPcopy Create free account
hub / github.com/defold/defold / ConcatString

Function ConcatString

engine/dlib/src/dlib/message.cpp:522–529  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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)

Callers 1

GetProfilerStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected