MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / strCopy

Function strCopy

Source/3rdParty/bx/src/string.cpp:305–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303 }
304
305 inline int32_t strCopy(char* _dst, int32_t _dstSize, const char* _src, int32_t _num)
306 {
307 BX_ASSERT(NULL != _dst, "_dst can't be NULL!");
308 BX_ASSERT(NULL != _src, "_src can't be NULL!");
309 BX_ASSERT(0 < _dstSize, "_dstSize can't be 0!");
310
311 const int32_t len = strLen(_src, _num);
312 const int32_t max = _dstSize-1;
313 const int32_t num = (len < max ? len : max);
314 memCopy(_dst, _src, num);
315 _dst[num] = '\0';
316
317 return num;
318 }
319
320 int32_t strCopy(char* _dst, int32_t _dstSize, const StringView& _str, int32_t _num)
321 {

Callers 15

strReplaceFunction · 0.85
scratchMethod · 0.85
compileFunction · 0.85
dumpExtensionsFunction · 0.85
updateViewNameMethod · 0.85
screenShotMethod · 0.85
parseAttrToFunction · 0.85
updateViewNameMethod · 0.85
beginMethod · 0.85
SwapChainGLMethod · 0.85
BGFX_API_FUNCMethod · 0.85
updateViewNameMethod · 0.85

Calls 4

strLenFunction · 0.85
memCopyFunction · 0.85
minFunction · 0.50
getLengthMethod · 0.45

Tested by

no test coverage detected