Lines Matching refs:buf

405     uint8_t buf[kLFHLen];  in read()  local
410 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { 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()
471 uint8_t buf[kLFHLen]; in write() local
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()
485 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) in write()
539 uint8_t buf[kCDELen]; in read() local
546 if (fread(buf, 1, kCDELen, fp) != kCDELen) { 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()
629 uint8_t buf[kCDELen]; in write() local
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()
649 if (fwrite(buf, 1, kCDELen, fp) != kCDELen) in write()