MCPcopy Create free account
hub / github.com/boostorg/stacktrace / get_file_size

Function get_file_size

test/test.cpp:267–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267std::size_t get_file_size(const char* file_name) {
268 std::ifstream file(file_name, std::ios::binary | std::ios::ate);
269 const auto file_size = file.tellg();
270 BOOST_TEST(file_size > 0);
271 return static_cast<std::size_t>(file_size);
272}
273
274uintptr_t get_address_from_frame(const std::string& frame) {
275 std::size_t address = 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected