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

Method copy

library/DataDefs.cpp:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69bool type_identity::copy(void *tgt, const void *src) const {
70 if (can_allocate() && tgt && src)
71 return do_copy(tgt, src);
72 else
73 return false;
74}
75
76bool type_identity::destroy(void *obj) const {
77 if (can_allocate() && obj)

Callers 5

doAssignDFObjectFunction · 0.80
meta_newFunction · 0.80
meta_assignFunction · 0.80
readSTLStringFunction · 0.80
build.pyFile · 0.80

Calls 2

can_allocateFunction · 0.85
do_copyFunction · 0.85

Tested by

no test coverage detected