Lines Matching refs:buf

403     uint8_t buf[kLFHLen];  in read()  local
408 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { in read()
413 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { in read()
419 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); in read()
420 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); in read()
421 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); in read()
422 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); in read()
423 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); in read()
424 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); in read()
425 mCompressedSize = ZipEntry::getLongLE(&buf[0x12]); in read()
426 mUncompressedSize = ZipEntry::getLongLE(&buf[0x16]); in read()
427 mFileNameLength = ZipEntry::getShortLE(&buf[0x1a]); in read()
428 mExtraFieldLength = ZipEntry::getShortLE(&buf[0x1c]); in read()
469 uint8_t buf[kLFHLen]; in write() local
471 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
472 ZipEntry::putShortLE(&buf[0x04], mVersionToExtract); in write()
473 ZipEntry::putShortLE(&buf[0x06], mGPBitFlag); in write()
474 ZipEntry::putShortLE(&buf[0x08], mCompressionMethod); in write()
475 ZipEntry::putShortLE(&buf[0x0a], mLastModFileTime); in write()
476 ZipEntry::putShortLE(&buf[0x0c], mLastModFileDate); in write()
477 ZipEntry::putLongLE(&buf[0x0e], mCRC32); in write()
478 ZipEntry::putLongLE(&buf[0x12], mCompressedSize); in write()
479 ZipEntry::putLongLE(&buf[0x16], mUncompressedSize); in write()
480 ZipEntry::putShortLE(&buf[0x1a], mFileNameLength); in write()
481 ZipEntry::putShortLE(&buf[0x1c], mExtraFieldLength); in write()
483 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) in write()
537 uint8_t buf[kCDELen]; in read() local
544 if (fread(buf, 1, kCDELen, fp) != kCDELen) { in read()
549 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { in read()
555 mVersionMadeBy = ZipEntry::getShortLE(&buf[0x04]); in read()
556 mVersionToExtract = ZipEntry::getShortLE(&buf[0x06]); in read()
557 mGPBitFlag = ZipEntry::getShortLE(&buf[0x08]); in read()
558 mCompressionMethod = ZipEntry::getShortLE(&buf[0x0a]); in read()
559 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0c]); in read()
560 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0e]); in read()
561 mCRC32 = ZipEntry::getLongLE(&buf[0x10]); in read()
562 mCompressedSize = ZipEntry::getLongLE(&buf[0x14]); in read()
563 mUncompressedSize = ZipEntry::getLongLE(&buf[0x18]); in read()
564 mFileNameLength = ZipEntry::getShortLE(&buf[0x1c]); in read()
565 mExtraFieldLength = ZipEntry::getShortLE(&buf[0x1e]); in read()
566 mFileCommentLength = ZipEntry::getShortLE(&buf[0x20]); in read()
567 mDiskNumberStart = ZipEntry::getShortLE(&buf[0x22]); in read()
568 mInternalAttrs = ZipEntry::getShortLE(&buf[0x24]); in read()
569 mExternalAttrs = ZipEntry::getLongLE(&buf[0x26]); in read()
570 mLocalHeaderRelOffset = ZipEntry::getLongLE(&buf[0x2a]); in read()
627 uint8_t buf[kCDELen]; in write() local
629 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
630 ZipEntry::putShortLE(&buf[0x04], mVersionMadeBy); in write()
631 ZipEntry::putShortLE(&buf[0x06], mVersionToExtract); in write()
632 ZipEntry::putShortLE(&buf[0x08], mGPBitFlag); in write()
633 ZipEntry::putShortLE(&buf[0x0a], mCompressionMethod); in write()
634 ZipEntry::putShortLE(&buf[0x0c], mLastModFileTime); in write()
635 ZipEntry::putShortLE(&buf[0x0e], mLastModFileDate); in write()
636 ZipEntry::putLongLE(&buf[0x10], mCRC32); in write()
637 ZipEntry::putLongLE(&buf[0x14], mCompressedSize); in write()
638 ZipEntry::putLongLE(&buf[0x18], mUncompressedSize); in write()
639 ZipEntry::putShortLE(&buf[0x1c], mFileNameLength); in write()
640 ZipEntry::putShortLE(&buf[0x1e], mExtraFieldLength); in write()
641 ZipEntry::putShortLE(&buf[0x20], mFileCommentLength); in write()
642 ZipEntry::putShortLE(&buf[0x22], mDiskNumberStart); in write()
643 ZipEntry::putShortLE(&buf[0x24], mInternalAttrs); in write()
644 ZipEntry::putLongLE(&buf[0x26], mExternalAttrs); in write()
645 ZipEntry::putLongLE(&buf[0x2a], mLocalHeaderRelOffset); in write()
647 if (fwrite(buf, 1, kCDELen, fp) != kCDELen) in write()