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

Method pwrite

source/core/StarFile_unix.cpp:286–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286size_t File::pwrite(void* file, char const* data, size_t len, StreamOffset position) {
287 return ::pwrite(fdFromHandle(file), data, len, position);
288}
289
290void File::resize(void* f, StreamOffset size) {
291 if (::ftruncate(fdFromHandle(f), size) < 0)

Callers 1

Calls 1

fdFromHandleFunction · 0.85

Tested by

no test coverage detected