Lines Matching refs:fp
153 FileReader(FILE* fp) : in FileReader() argument
154 mFp(fp), mReadBuf(new unsigned char[kReadBufSize]) in FileReader()
216 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer() argument
219 FileReader reader(fp); in inflateToBuffer()
255 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, in examineGzip() argument
269 ic = getc(fp); in examineGzip()
270 if (ic != 0x1f || getc(fp) != 0x8b) in examineGzip()
272 method = getc(fp); in examineGzip()
273 flags = getc(fp); in examineGzip()
283 (void) getc(fp); in examineGzip()
288 len = getc(fp); in examineGzip()
289 len |= getc(fp) << 8; in examineGzip()
290 while (len-- && getc(fp) != EOF) in examineGzip()
296 ic = getc(fp); in examineGzip()
302 ic = getc(fp); in examineGzip()
307 (void) getc(fp); in examineGzip()
308 (void) getc(fp); in examineGzip()
311 if (feof(fp) || ferror(fp)) in examineGzip()
315 long curPosn = ftell(fp); in examineGzip()
317 fseek(fp, -8, SEEK_END); in examineGzip()
318 *pCompressedLen = ftell(fp) - curPosn; in examineGzip()
320 if (fread(buf, 1, 8, fp) != 8) in examineGzip()
323 fseek(fp, curPosn, SEEK_SET); in examineGzip()