Lines Matching defs:fp
49 * trouble when "fp" has a different notion of what fd's file position is.)
51 * "fp" is an open file positioned at the start of the "deflate" data
153 FileReader(FILE* fp) :
154 mFp(fp), mReadBuf(new unsigned char[kReadBufSize])
216 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf,
219 FileReader reader(fp);
253 * On exit, "fp" is pointing at the start of the compressed data.
255 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod,
269 ic = getc(fp);
270 if (ic != 0x1f || getc(fp) != 0x8b)
272 method = getc(fp);
273 flags = getc(fp);
283 (void) getc(fp);
288 len = getc(fp);
289 len |= getc(fp) << 8;
290 while (len-- && getc(fp) != EOF)
296 ic = getc(fp);
302 ic = getc(fp);
307 (void) getc(fp);
308 (void) getc(fp);
311 if (feof(fp) || ferror(fp))
315 long curPosn = ftell(fp);
317 fseek(fp, -8, SEEK_END);
318 *pCompressedLen = ftell(fp) - curPosn;
320 if (fread(buf, 1, 8, fp) != 8)
323 fseek(fp, curPosn, SEEK_SET);