MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / resize

Method resize

source/core/StarFile_unix.cpp:290–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void File::resize(void* f, StreamOffset size) {
291 if (::ftruncate(fdFromHandle(f), size) < 0)
292 throw IOException::format("resize error: {}", strerror(errno));
293}
294
295}

Callers

nothing calls this directly

Calls 2

fdFromHandleFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected