MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / read_req

Function read_req

libCacheSim/bin/debug/fileOp.cpp:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void read_req(const char *file_path, req_t *req) {
34 std::ifstream file(file_path, std::ios::in | std::ios::binary);
35 file.read(reinterpret_cast<char *>(req), sizeof(req_t));
36}
37
38void print_req(req_t *req) {
39 std::cout << "clock_time: " << req->clock_time << std::endl;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected