MCPcopy Create free account
hub / github.com/crossuo/crossuo / CopyString

Function CopyString

external/tracy/client/TracyCallstack.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34{
35
36static inline char* CopyString( const char* src, size_t sz )
37{
38 assert( strlen( src ) == sz );
39 auto dst = (char*)tracy_malloc( sz + 1 );
40 memcpy( dst, src, sz );
41 dst[sz] = '\0';
42 return dst;
43}
44
45static inline char* CopyString( const char* src )
46{

Callers 4

DecodeCallstackPtrFunction · 0.85
SymbolAddressDataCbFunction · 0.85
CallstackDataCbFunction · 0.85
CallstackErrorCbFunction · 0.85

Calls 2

tracy_mallocFunction · 0.85
memcpyFunction · 0.85

Tested by

no test coverage detected