Lines Matching refs:fp

935 DataKeys* parseKeys(FILE *fp, int verbose)  in parseKeys()  argument
949 if (fseek(fp, 0L, SEEK_END) != 0) { in parseKeys()
953 pKeys->fileLen = ftell(fp); in parseKeys()
958 rewind(fp); in parseKeys()
966 if (fread(pKeys->fileData, 1, pKeys->fileLen, fp) != (size_t) pKeys->fileLen) in parseKeys()
986 fseek(fp, offset, SEEK_SET); in parseKeys()
1031 unsigned int read2LE(FILE* fp) in read2LE() argument
1035 val = getc(fp); in read2LE()
1036 val |= getc(fp) << 8; in read2LE()
1039 unsigned int read4LE(FILE* fp) in read4LE() argument
1043 val = getc(fp); in read4LE()
1044 val |= getc(fp) << 8; in read4LE()
1045 val |= getc(fp) << 16; in read4LE()
1046 val |= getc(fp) << 24; in read4LE()
1049 unsigned long long read8LE(FILE* fp) in read8LE() argument
1053 val = getc(fp); in read8LE()
1054 val |= (unsigned long long) getc(fp) << 8; in read8LE()
1055 val |= (unsigned long long) getc(fp) << 16; in read8LE()
1056 val |= (unsigned long long) getc(fp) << 24; in read8LE()
1057 val |= (unsigned long long) getc(fp) << 32; in read8LE()
1058 val |= (unsigned long long) getc(fp) << 40; in read8LE()
1059 val |= (unsigned long long) getc(fp) << 48; in read8LE()
1060 val |= (unsigned long long) getc(fp) << 56; in read8LE()
1069 int parseDataHeader(FILE *fp, DataHeader* pHeader) in parseDataHeader() argument
1073 pHeader->magic = read4LE(fp); in parseDataHeader()
1074 pHeader->version = read2LE(fp); in parseDataHeader()
1075 pHeader->offsetToData = read2LE(fp); in parseDataHeader()
1076 pHeader->startWhen = read8LE(fp); in parseDataHeader()
1083 pHeader->recordSize = read2LE(fp); in parseDataHeader()
1090 if (fseek(fp, bytesToRead, SEEK_CUR) != 0) { in parseDataHeader()