Lines Matching refs:ZipEntry
39 status_t ZipEntry::initFromCDE(FILE* fp) in initFromCDE()
112 void ZipEntry::initNew(const char* fileName, const char* comment) in initNew()
144 status_t ZipEntry::initFromExternal(const ZipFile* pZipFile, in initFromExternal()
145 const ZipEntry* pEntry) in initFromExternal()
198 status_t ZipEntry::addPadding(int padding) in addPadding()
234 void ZipEntry::copyCDEtoLFH(void) in copyCDEtoLFH()
259 void ZipEntry::setDataInfo(long uncompLen, long compLen, unsigned long crc32, in setDataInfo()
280 bool ZipEntry::compareHeaders(void) const in compareHeaders()
338 time_t ZipEntry::getModWhen(void) const in getModWhen()
357 void ZipEntry::setModWhen(time_t when) in setModWhen()
402 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read()
415 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { in read()
421 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); in read()
422 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); in read()
423 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); in read()
424 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); in read()
425 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); in read()
426 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); in read()
427 mCompressedSize = ZipEntry::getLongLE(&buf[0x12]); in read()
428 mUncompressedSize = ZipEntry::getLongLE(&buf[0x16]); in read()
429 mFileNameLength = ZipEntry::getShortLE(&buf[0x1a]); in read()
430 mExtraFieldLength = ZipEntry::getShortLE(&buf[0x1c]); in read()
469 status_t ZipEntry::LocalFileHeader::write(FILE* fp) in write()
473 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
474 ZipEntry::putShortLE(&buf[0x04], mVersionToExtract); in write()
475 ZipEntry::putShortLE(&buf[0x06], mGPBitFlag); in write()
476 ZipEntry::putShortLE(&buf[0x08], mCompressionMethod); in write()
477 ZipEntry::putShortLE(&buf[0x0a], mLastModFileTime); in write()
478 ZipEntry::putShortLE(&buf[0x0c], mLastModFileDate); in write()
479 ZipEntry::putLongLE(&buf[0x0e], mCRC32); in write()
480 ZipEntry::putLongLE(&buf[0x12], mCompressedSize); in write()
481 ZipEntry::putLongLE(&buf[0x16], mUncompressedSize); in write()
482 ZipEntry::putShortLE(&buf[0x1a], mFileNameLength); in write()
483 ZipEntry::putShortLE(&buf[0x1c], mExtraFieldLength); in write()
507 void ZipEntry::LocalFileHeader::dump(void) const in dump()
536 status_t ZipEntry::CentralDirEntry::read(FILE* fp) in read()
551 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { in read()
557 mVersionMadeBy = ZipEntry::getShortLE(&buf[0x04]); in read()
558 mVersionToExtract = ZipEntry::getShortLE(&buf[0x06]); in read()
559 mGPBitFlag = ZipEntry::getShortLE(&buf[0x08]); in read()
560 mCompressionMethod = ZipEntry::getShortLE(&buf[0x0a]); in read()
561 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0c]); in read()
562 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0e]); in read()
563 mCRC32 = ZipEntry::getLongLE(&buf[0x10]); in read()
564 mCompressedSize = ZipEntry::getLongLE(&buf[0x14]); in read()
565 mUncompressedSize = ZipEntry::getLongLE(&buf[0x18]); in read()
566 mFileNameLength = ZipEntry::getShortLE(&buf[0x1c]); in read()
567 mExtraFieldLength = ZipEntry::getShortLE(&buf[0x1e]); in read()
568 mFileCommentLength = ZipEntry::getShortLE(&buf[0x20]); in read()
569 mDiskNumberStart = ZipEntry::getShortLE(&buf[0x22]); in read()
570 mInternalAttrs = ZipEntry::getShortLE(&buf[0x24]); in read()
571 mExternalAttrs = ZipEntry::getLongLE(&buf[0x26]); in read()
572 mLocalHeaderRelOffset = ZipEntry::getLongLE(&buf[0x2a]); in read()
627 status_t ZipEntry::CentralDirEntry::write(FILE* fp) in write()
631 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
632 ZipEntry::putShortLE(&buf[0x04], mVersionMadeBy); in write()
633 ZipEntry::putShortLE(&buf[0x06], mVersionToExtract); in write()
634 ZipEntry::putShortLE(&buf[0x08], mGPBitFlag); in write()
635 ZipEntry::putShortLE(&buf[0x0a], mCompressionMethod); in write()
636 ZipEntry::putShortLE(&buf[0x0c], mLastModFileTime); in write()
637 ZipEntry::putShortLE(&buf[0x0e], mLastModFileDate); in write()
638 ZipEntry::putLongLE(&buf[0x10], mCRC32); in write()
639 ZipEntry::putLongLE(&buf[0x14], mCompressedSize); in write()
640 ZipEntry::putLongLE(&buf[0x18], mUncompressedSize); in write()
641 ZipEntry::putShortLE(&buf[0x1c], mFileNameLength); in write()
642 ZipEntry::putShortLE(&buf[0x1e], mExtraFieldLength); in write()
643 ZipEntry::putShortLE(&buf[0x20], mFileCommentLength); in write()
644 ZipEntry::putShortLE(&buf[0x22], mDiskNumberStart); in write()
645 ZipEntry::putShortLE(&buf[0x24], mInternalAttrs); in write()
646 ZipEntry::putLongLE(&buf[0x26], mExternalAttrs); in write()
647 ZipEntry::putLongLE(&buf[0x2a], mLocalHeaderRelOffset); in write()
676 void ZipEntry::CentralDirEntry::dump(void) const in dump()