Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
91
const 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
AddString
Method · 0.80
StoreUnknownCommand
Method · 0.80
Calls
2
str_length
Function · 0.85
str_copy
Function · 0.50
Tested by
no test coverage detected