Lines Matching refs:fp

41 status_t ZipEntry::initFromCDE(FILE* fp)  in initFromCDE()  argument
50 result = mCDE.read(fp); in initFromCDE()
59 posn = ftell(fp); in initFromCDE()
60 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE()
66 result = mLFH.read(fp); in initFromCDE()
72 if (fseek(fp, posn, SEEK_SET) != 0) in initFromCDE()
404 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read() argument
412 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { in read()
443 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) { in read()
457 if (fread(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) { in read()
471 status_t ZipEntry::LocalFileHeader::write(FILE* fp) in write() argument
487 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) in write()
492 if (fwrite(mFileName, 1, mFileNameLength, fp) != mFileNameLength) in write()
498 if (fwrite(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) in write()
538 status_t ZipEntry::CentralDirEntry::read(FILE* fp) in read() argument
548 if (fread(buf, 1, kCDELen, fp) != kCDELen) { in read()
585 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) { in read()
599 if (fread(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) { in read()
614 if (fread(mFileComment, 1, mFileCommentLength, fp) != mFileCommentLength) in read()
629 status_t ZipEntry::CentralDirEntry::write(FILE* fp) in write() argument
651 if (fwrite(buf, 1, kCDELen, fp) != kCDELen) in write()
656 if (fwrite(mFileName, 1, mFileNameLength, fp) != mFileNameLength) in write()
662 if (fwrite(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) in write()
668 if (fwrite(mFileComment, 1, mFileCommentLength, fp) != mFileCommentLength) in write()