Lines Matching refs:fp
40 explicit FileReader(FILE* fp) : Reader(), mFp(fp), mCurrentOffset(0) { in FileReader() argument
125 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer() argument
128 FileReader reader(fp); in inflateToBuffer()
166 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, in examineGzip() argument
180 ic = getc(fp); in examineGzip()
181 if (ic != 0x1f || getc(fp) != 0x8b) in examineGzip()
183 method = getc(fp); in examineGzip()
184 flags = getc(fp); in examineGzip()
194 (void) getc(fp); in examineGzip()
199 len = getc(fp); in examineGzip()
200 len |= getc(fp) << 8; in examineGzip()
201 while (len-- && getc(fp) != EOF) in examineGzip()
207 ic = getc(fp); in examineGzip()
213 ic = getc(fp); in examineGzip()
218 (void) getc(fp); in examineGzip()
219 (void) getc(fp); in examineGzip()
222 if (feof(fp) || ferror(fp)) in examineGzip()
226 long curPosn = ftell(fp); in examineGzip()
228 fseek(fp, -8, SEEK_END); in examineGzip()
229 *pCompressedLen = ftell(fp) - curPosn; in examineGzip()
231 if (fread(buf, 1, 8, fp) != 8) in examineGzip()
234 fseek(fp, curPosn, SEEK_SET); in examineGzip()