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

Method fileSize

source/core/StarFile.cpp:80–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80StreamOffset File::fileSize(String const& filename) {
81 return File::open(filename, IOMode::Read)->size();
82}
83
84void File::writeFile(char const* data, size_t len, String const& filename) {
85 FilePtr file = File::open(filename, IOMode::Write | IOMode::Truncate);

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected