Lines Matching defs:fp

39 status_t ZipEntry::initFromCDE(FILE* fp)
48 result = mCDE.read(fp);
57 posn = ftell(fp);
58 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) {
64 result = mLFH.read(fp);
70 if (fseek(fp, posn, SEEK_SET) != 0)
399 * On entry, "fp" points to the signature at the start of the header.
400 * On exit, "fp" points to the start of data.
402 status_t ZipEntry::LocalFileHeader::read(FILE* fp)
410 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) {
441 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) {
455 if (fread(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) {
469 status_t ZipEntry::LocalFileHeader::write(FILE* fp)
485 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen)
490 if (fwrite(mFileName, 1, mFileNameLength, fp) != mFileNameLength)
496 if (fwrite(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength)
532 * On entry, "fp" should be positioned on the signature bytes for the
533 * entry. On exit, "fp" will point at the signature word for the next
536 status_t ZipEntry::CentralDirEntry::read(FILE* fp)
546 if (fread(buf, 1, kCDELen, fp) != kCDELen) {
583 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) {
597 if (fread(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) {
612 if (fread(mFileComment, 1, mFileCommentLength, fp) != mFileCommentLength)
627 status_t ZipEntry::CentralDirEntry::write(FILE* fp)
649 if (fwrite(buf, 1, kCDELen, fp) != kCDELen)
654 if (fwrite(mFileName, 1, mFileNameLength, fp) != mFileNameLength)
660 if (fwrite(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength)
666 if (fwrite(mFileComment, 1, mFileCommentLength, fp) != mFileCommentLength)