Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
290
void 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
fdFromHandle
Function · 0.85
format
Function · 0.70
Tested by
no test coverage detected