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

Method resize_depth

plugins/3dveins.cpp:228–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 const df::coord &size() { return dim; }
227
228 void resize_depth(int16_t zdepth) {
229 dim.z = zdepth;
230 buf.resize(dim.x * dim.y * dim.z);
231 }
232 void shift_depth(int16_t to_add) {
233 dim.z += to_add;
234 buf.insert(buf.begin(), dim.x*dim.y*to_add, T());

Callers 1

blockAtMethod · 0.80

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected