MCPcopy Create free account
hub / github.com/ablab/spades / BufferedFile

Method BufferedFile

ext/src/cppformat/posix.cc:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80fmt::BufferedFile::BufferedFile(fmt::StringRef filename, fmt::StringRef mode) {
81 FMT_RETRY_VAL(file_, FMT_SYSTEM(fopen(filename.c_str(), mode.c_str())), 0);
82 if (!file_)
83 throw SystemError(errno, "cannot open file {}", filename);
84}
85
86void fmt::BufferedFile::close() {
87 if (!file_)

Callers

nothing calls this directly

Calls 2

SystemErrorClass · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected