Lines Matching refs:fp
44 status_t ZipEntry::initAndRewriteFromCDE(FILE* fp) in initAndRewriteFromCDE() argument
50 result = mCDE.rewrite(fp); in initAndRewriteFromCDE()
57 posn = ftell(fp); in initAndRewriteFromCDE()
58 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initAndRewriteFromCDE()
64 result = mLFH.rewrite(fp); in initAndRewriteFromCDE()
70 if (fseek(fp, posn, SEEK_SET) != 0) in initAndRewriteFromCDE()
87 status_t ZipEntry::LocalFileHeader::rewrite(FILE* fp) in rewrite() argument
91 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) in rewrite()
102 if (fseek(fp, -kLFHLen, SEEK_CUR) != 0) in rewrite()
105 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) in rewrite()
124 status_t ZipEntry::CentralDirEntry::rewrite(FILE* fp) in rewrite() argument
129 if (fread(buf, 1, kCDELen, fp) != kCDELen) in rewrite()
145 if (fseek(fp, -kCDELen, SEEK_CUR) != 0) in rewrite()
148 if (fwrite(buf, 1, kCDELen, fp) != kCDELen) in rewrite()
151 if (fseek(fp, fileNameLength + extraFieldLength + fileCommentLength, SEEK_CUR) != 0) in rewrite()