Lines Matching refs:fp
149 * trouble when "fp" has a different notion of what fd's file position is.)
151 * "fp" is an open file positioned at the start of the "deflate" data
154 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf,
213 int cc = fread(readBuf, 1, getSize, fp);
266 * On exit, "fp" is pointing at the start of the compressed data.
268 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod,
282 ic = getc(fp);
283 if (ic != 0x1f || getc(fp) != 0x8b)
285 method = getc(fp);
286 flags = getc(fp);
296 (void) getc(fp);
301 len = getc(fp);
302 len |= getc(fp) << 8;
303 while (len-- && getc(fp) != EOF)
309 ic = getc(fp);
315 ic = getc(fp);
320 (void) getc(fp);
321 (void) getc(fp);
324 if (feof(fp) || ferror(fp))
328 long curPosn = ftell(fp);
330 fseek(fp, -8, SEEK_END);
331 *pCompressedLen = ftell(fp) - curPosn;
333 if (fread(buf, 1, 8, fp) != 8)
336 fseek(fp, curPosn, SEEK_SET);