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

Function cal_offset

libCacheSim/traceReader/generalReader/binary.c:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#endif
25
26static int cal_offset(const char *format_str, int field_idx) {
27 int offset = 0;
28 for (int i = 0; i < field_idx - 1; i++) {
29 offset += format_to_size(format_str[i]);
30 }
31 return offset;
32}
33
34int binaryReader_setup(reader_t *const reader) {
35 reader->trace_type = BIN_TRACE;

Callers 1

binaryReader_setupFunction · 0.85

Calls 1

format_to_sizeFunction · 0.85

Tested by

no test coverage detected