MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / file_seek_abs

Function file_seek_abs

src/ifcparse/FileReader.cpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23#if defined(_WIN32)
24 inline void file_seek_abs(FILE* f, std::uint64_t off) {
25 if (_fseeki64(f, static_cast<long long>(off), SEEK_SET) != 0)
26 throw std::runtime_error("fseek failed");
27 }
28#else
29 inline void file_seek_abs(FILE* f, std::uint64_t off) {
30 if (fseeko(f, static_cast<off_t>(off), SEEK_SET) != 0)

Callers 1

PagedFileImplClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected