MCPcopy Create free account
hub / github.com/beefytech/Beef / DbgDupString

Method DbgDupString

IDEHelper/DbgModule.cpp:2417–2425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2415}
2416
2417char* DbgModule::DbgDupString(const char* str, const char* allocName)
2418{
2419 int strLen = (int)strlen(str);
2420 if (strLen == 0)
2421 return NULL;
2422 char* dupStr = (char*)mAlloc.AllocBytes(strLen + 1, (allocName != NULL) ? allocName : "DbgDupString");
2423 memcpy(dupStr, str, strLen);
2424 return dupStr;
2425}
2426
2427DbgModule* DbgModule::GetLinkedModule()
2428{

Callers 1

FixNameMethod · 0.80

Calls 1

AllocBytesMethod · 0.45

Tested by

no test coverage detected