Lines Matching refs:ZipEntry

41 status_t ZipEntry::initFromCDE(FILE* fp)  in initFromCDE()
114 void ZipEntry::initNew(const char* fileName, const char* comment) in initNew()
147 status_t ZipEntry::initFromExternal(const ZipEntry* pEntry) in initFromExternal()
200 status_t ZipEntry::addPadding(int padding) in addPadding()
236 void ZipEntry::copyCDEtoLFH(void) in copyCDEtoLFH()
261 void ZipEntry::setDataInfo(uint32_t uncompLen, uint32_t compLen, uint32_t crc32, in setDataInfo()
282 bool ZipEntry::compareHeaders(void) const in compareHeaders()
340 time_t ZipEntry::getModWhen(void) const in getModWhen()
359 void ZipEntry::setModWhen(time_t when) in setModWhen()
404 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read()
417 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { in read()
423 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); in read()
424 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); in read()
425 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); in read()
426 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); in read()
427 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); in read()
428 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); in read()
429 mCompressedSize = ZipEntry::getLongLE(&buf[0x12]); in read()
430 mUncompressedSize = ZipEntry::getLongLE(&buf[0x16]); in read()
431 mFileNameLength = ZipEntry::getShortLE(&buf[0x1a]); in read()
432 mExtraFieldLength = ZipEntry::getShortLE(&buf[0x1c]); in read()
471 status_t ZipEntry::LocalFileHeader::write(FILE* fp) in write()
475 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
476 ZipEntry::putShortLE(&buf[0x04], mVersionToExtract); in write()
477 ZipEntry::putShortLE(&buf[0x06], mGPBitFlag); in write()
478 ZipEntry::putShortLE(&buf[0x08], mCompressionMethod); in write()
479 ZipEntry::putShortLE(&buf[0x0a], mLastModFileTime); in write()
480 ZipEntry::putShortLE(&buf[0x0c], mLastModFileDate); in write()
481 ZipEntry::putLongLE(&buf[0x0e], mCRC32); in write()
482 ZipEntry::putLongLE(&buf[0x12], mCompressedSize); in write()
483 ZipEntry::putLongLE(&buf[0x16], mUncompressedSize); in write()
484 ZipEntry::putShortLE(&buf[0x1a], mFileNameLength); in write()
485 ZipEntry::putShortLE(&buf[0x1c], mExtraFieldLength); in write()
509 void ZipEntry::LocalFileHeader::dump(void) const in dump()
538 status_t ZipEntry::CentralDirEntry::read(FILE* fp) in read()
553 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { in read()
559 mVersionMadeBy = ZipEntry::getShortLE(&buf[0x04]); in read()
560 mVersionToExtract = ZipEntry::getShortLE(&buf[0x06]); in read()
561 mGPBitFlag = ZipEntry::getShortLE(&buf[0x08]); in read()
562 mCompressionMethod = ZipEntry::getShortLE(&buf[0x0a]); in read()
563 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0c]); in read()
564 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0e]); in read()
565 mCRC32 = ZipEntry::getLongLE(&buf[0x10]); in read()
566 mCompressedSize = ZipEntry::getLongLE(&buf[0x14]); in read()
567 mUncompressedSize = ZipEntry::getLongLE(&buf[0x18]); in read()
568 mFileNameLength = ZipEntry::getShortLE(&buf[0x1c]); in read()
569 mExtraFieldLength = ZipEntry::getShortLE(&buf[0x1e]); in read()
570 mFileCommentLength = ZipEntry::getShortLE(&buf[0x20]); in read()
571 mDiskNumberStart = ZipEntry::getShortLE(&buf[0x22]); in read()
572 mInternalAttrs = ZipEntry::getShortLE(&buf[0x24]); in read()
573 mExternalAttrs = ZipEntry::getLongLE(&buf[0x26]); in read()
574 mLocalHeaderRelOffset = ZipEntry::getLongLE(&buf[0x2a]); in read()
629 status_t ZipEntry::CentralDirEntry::write(FILE* fp) in write()
633 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
634 ZipEntry::putShortLE(&buf[0x04], mVersionMadeBy); in write()
635 ZipEntry::putShortLE(&buf[0x06], mVersionToExtract); in write()
636 ZipEntry::putShortLE(&buf[0x08], mGPBitFlag); in write()
637 ZipEntry::putShortLE(&buf[0x0a], mCompressionMethod); in write()
638 ZipEntry::putShortLE(&buf[0x0c], mLastModFileTime); in write()
639 ZipEntry::putShortLE(&buf[0x0e], mLastModFileDate); in write()
640 ZipEntry::putLongLE(&buf[0x10], mCRC32); in write()
641 ZipEntry::putLongLE(&buf[0x14], mCompressedSize); in write()
642 ZipEntry::putLongLE(&buf[0x18], mUncompressedSize); in write()
643 ZipEntry::putShortLE(&buf[0x1c], mFileNameLength); in write()
644 ZipEntry::putShortLE(&buf[0x1e], mExtraFieldLength); in write()
645 ZipEntry::putShortLE(&buf[0x20], mFileCommentLength); in write()
646 ZipEntry::putShortLE(&buf[0x22], mDiskNumberStart); in write()
647 ZipEntry::putShortLE(&buf[0x24], mInternalAttrs); in write()
648 ZipEntry::putLongLE(&buf[0x26], mExternalAttrs); in write()
649 ZipEntry::putLongLE(&buf[0x2a], mLocalHeaderRelOffset); in write()
678 void ZipEntry::CentralDirEntry::dump(void) const in dump()