MCPcopy Create free account
hub / github.com/DFHack/dfhack / allocate

Method allocate

library/DataDefs.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void *type_identity::allocate() const {
63 if (can_allocate())
64 return do_allocate();
65 else
66 return NULL;
67}
68
69bool type_identity::copy(void *tgt, const void *src) const {
70 if (can_allocate() && tgt && src)

Callers 4

autovivify_ptrFunction · 0.80
meta_newFunction · 0.80
allocInstanceMethod · 0.80
allocateFunction · 0.80

Calls 2

can_allocateFunction · 0.85
do_allocateFunction · 0.85

Tested by

no test coverage detected