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

Method resize

library/include/DataIdentity.h:408–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406 }
407
408 virtual bool resize(void *ptr, int size) const {
409 (*(T*)ptr).resize(size);
410 return true;
411 }
412 virtual bool erase(void *ptr, int size) const {
413 auto &ct = *(T*)ptr;
414 ct.erase(ct.begin()+size);

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected