Lines Matching refs:mFp
402 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset()
428 assert(mFp == NULL); // no reopen in openChunk()
451 mFp = fdopen(fd, "rb"); in openChunk()
452 if (mFp == NULL) in openChunk()
460 if (fseek(mFp, mStart, SEEK_SET) != 0) { in openChunk()
474 assert(mFp == NULL); // no reopen in openChunk()
528 if (ftell(mFp) != mStart + mOffset) { in read()
530 ftell(mFp), (long) mStart, (long) mOffset); in read()
541 actual = fread(buf, 1, count, mFp); in read()
567 if (mFp != NULL) { in seek()
568 if (fseek(mFp, (long) actualOffset, SEEK_SET) != 0) in seek()
595 if (mFp != NULL) { in close()
598 fclose(mFp); in close()
599 mFp = NULL; in close()
623 assert(mFp != NULL); in getBuffer()
643 long oldPosn = ftell(mFp); in getBuffer()
644 fseek(mFp, mStart, SEEK_SET); in getBuffer()
645 if (fread(buf, 1, mLength, mFp) != (size_t) mLength) { in getBuffer()
650 fseek(mFp, oldPosn, SEEK_SET); in getBuffer()
661 if (!map->create(NULL, fileno(mFp), mStart, mLength, true)) { in getBuffer()