Lines Matching refs:fp
151 * trouble when "fp" has a different notion of what fd's file position is.)
153 * "fp" is an open file positioned at the start of the "deflate" data
156 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf,
215 int cc = fread(readBuf, 1, getSize, fp);
268 * On exit, "fp" is pointing at the start of the compressed data.
270 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod,
284 ic = getc(fp);
285 if (ic != 0x1f || getc(fp) != 0x8b)
287 method = getc(fp);
288 flags = getc(fp);
298 (void) getc(fp);
303 len = getc(fp);
304 len |= getc(fp) << 8;
305 while (len-- && getc(fp) != EOF)
311 ic = getc(fp);
317 ic = getc(fp);
322 (void) getc(fp);
323 (void) getc(fp);
326 if (feof(fp) || ferror(fp))
330 long curPosn = ftell(fp);
332 fseek(fp, -8, SEEK_END);
333 *pCompressedLen = ftell(fp) - curPosn;
335 if (fread(buf, 1, 8, fp) != 8)
338 fseek(fp, curPosn, SEEK_SET);