MCPcopy Create free account
hub / github.com/ddnet/ddnet / StoreString

Method StoreString

src/engine/shared/memheap.cpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91const char *CHeap::StoreString(const char *pSrc)
92{
93 const int Size = str_length(pSrc) + 1;
94 char *pMem = static_cast<char *>(Allocate(Size));
95 str_copy(pMem, pSrc, Size);
96 return pMem;
97}

Callers 2

AddStringMethod · 0.80
StoreUnknownCommandMethod · 0.80

Calls 2

str_lengthFunction · 0.85
str_copyFunction · 0.50

Tested by

no test coverage detected