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