Lines Matching refs:pHeader
940 int32_t parseDataHeader(FILE* fp, DataHeader* pHeader) { in parseDataHeader() argument
941 pHeader->magic = read4LE(fp); in parseDataHeader()
942 pHeader->version = read2LE(fp); in parseDataHeader()
943 pHeader->offsetToData = read2LE(fp); in parseDataHeader()
944 pHeader->startWhen = read8LE(fp); in parseDataHeader()
945 int32_t bytesToRead = pHeader->offsetToData - 16; in parseDataHeader()
946 if (pHeader->version == 1) { in parseDataHeader()
947 pHeader->recordSize = 9; in parseDataHeader()
948 } else if (pHeader->version == 2) { in parseDataHeader()
949 pHeader->recordSize = 10; in parseDataHeader()
950 } else if (pHeader->version == 3) { in parseDataHeader()
951 pHeader->recordSize = read2LE(fp); in parseDataHeader()
954 fprintf(stderr, "Unsupported trace file version: %d\n", pHeader->version); in parseDataHeader()