Lines Matching refs:fp
40 explicit FileReader(FILE* fp) : Reader(), mFp(fp), mCurrentOffset(0) { in FileReader() argument
130 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer() argument
133 FileReader reader(fp); in inflateToBuffer()
171 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, in examineGzip() argument
185 ic = getc(fp); in examineGzip()
186 if (ic != 0x1f || getc(fp) != 0x8b) in examineGzip()
188 method = getc(fp); in examineGzip()
189 flags = getc(fp); in examineGzip()
199 (void) getc(fp); in examineGzip()
204 len = getc(fp); in examineGzip()
205 len |= getc(fp) << 8; in examineGzip()
206 while (len-- && getc(fp) != EOF) in examineGzip()
212 ic = getc(fp); in examineGzip()
218 ic = getc(fp); in examineGzip()
223 (void) getc(fp); in examineGzip()
224 (void) getc(fp); in examineGzip()
227 if (feof(fp) || ferror(fp)) in examineGzip()
231 long curPosn = ftell(fp); in examineGzip()
233 fseek(fp, -8, SEEK_END); in examineGzip()
234 *pCompressedLen = ftell(fp) - curPosn; in examineGzip()
236 if (fread(buf, 1, 8, fp) != 8) in examineGzip()
239 fseek(fp, curPosn, SEEK_SET); in examineGzip()