Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/defold/defold
/ Duplicate
Function
Duplicate
engine/dlib/src/dlib/poolallocator.cpp:85–91 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
83
}
84
85
char* Duplicate(HPool pool, const char* string)
86
{
87
uint32_t size = strlen(string) + 1;
88
char* buf = (char*) Alloc(pool, size);
89
memcpy(buf, string, size);
90
return buf;
91
}
92
93
}
Callers
2
Open
Function · 0.85
Begin
Function · 0.85
Calls
1
Alloc
Function · 0.70
Tested by
no test coverage detected