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

Function write_req

libCacheSim/bin/debug/fileOp.cpp:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26typedef req2_t req_t;
27
28void write_req(const char *file_path, req_t *req) {
29 std::ofstream file(file_path, std::ios::out | std::ios::binary | std::ios::trunc);
30 file.write(reinterpret_cast<char *>(req), sizeof(req_t));
31}
32
33void read_req(const char *file_path, req_t *req) {
34 std::ifstream file(file_path, std::ios::in | std::ios::binary);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected