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

Method CvParseAndDupString

IDEHelper/COFF.cpp:647–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647const char* COFF::CvParseAndDupString(uint8*& data)
648{
649 int strLen = strlen((const char*)data);
650 if (strLen == 0)
651 {
652 data++;
653 return NULL;
654 }
655
656 BP_ALLOC("CvParseAndDupString", strLen + 1);
657 char* dupStr = (char*)mAlloc.AllocBytes(strLen + 1, "CvParseAndDupString");
658 memcpy(dupStr, data, strLen);
659 data += strLen + 1;
660 return dupStr;
661}
662
663const char* COFF::CvDupString(const char* str, int strLen)
664{

Callers

nothing calls this directly

Calls 1

AllocBytesMethod · 0.45

Tested by

no test coverage detected