Lines Matching refs:buf
388 unsigned char buf[kLFHLen]; in read() local
393 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { in read()
398 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { in read()
404 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); in read()
405 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); in read()
406 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); in read()
407 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); in read()
408 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); in read()
409 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); in read()
410 mCompressedSize = ZipEntry::getLongLE(&buf[0x12]); in read()
411 mUncompressedSize = ZipEntry::getLongLE(&buf[0x16]); in read()
412 mFileNameLength = ZipEntry::getShortLE(&buf[0x1a]); in read()
413 mExtraFieldLength = ZipEntry::getShortLE(&buf[0x1c]); in read()
454 unsigned char buf[kLFHLen]; in write() local
456 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
457 ZipEntry::putShortLE(&buf[0x04], mVersionToExtract); in write()
458 ZipEntry::putShortLE(&buf[0x06], mGPBitFlag); in write()
459 ZipEntry::putShortLE(&buf[0x08], mCompressionMethod); in write()
460 ZipEntry::putShortLE(&buf[0x0a], mLastModFileTime); in write()
461 ZipEntry::putShortLE(&buf[0x0c], mLastModFileDate); in write()
462 ZipEntry::putLongLE(&buf[0x0e], mCRC32); in write()
463 ZipEntry::putLongLE(&buf[0x12], mCompressedSize); in write()
464 ZipEntry::putLongLE(&buf[0x16], mUncompressedSize); in write()
465 ZipEntry::putShortLE(&buf[0x1a], mFileNameLength); in write()
466 ZipEntry::putShortLE(&buf[0x1c], mExtraFieldLength); in write()
468 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) in write()
522 unsigned char buf[kCDELen]; in read() local
529 if (fread(buf, 1, kCDELen, fp) != kCDELen) { in read()
534 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { in read()
540 mVersionMadeBy = ZipEntry::getShortLE(&buf[0x04]); in read()
541 mVersionToExtract = ZipEntry::getShortLE(&buf[0x06]); in read()
542 mGPBitFlag = ZipEntry::getShortLE(&buf[0x08]); in read()
543 mCompressionMethod = ZipEntry::getShortLE(&buf[0x0a]); in read()
544 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0c]); in read()
545 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0e]); in read()
546 mCRC32 = ZipEntry::getLongLE(&buf[0x10]); in read()
547 mCompressedSize = ZipEntry::getLongLE(&buf[0x14]); in read()
548 mUncompressedSize = ZipEntry::getLongLE(&buf[0x18]); in read()
549 mFileNameLength = ZipEntry::getShortLE(&buf[0x1c]); in read()
550 mExtraFieldLength = ZipEntry::getShortLE(&buf[0x1e]); in read()
551 mFileCommentLength = ZipEntry::getShortLE(&buf[0x20]); in read()
552 mDiskNumberStart = ZipEntry::getShortLE(&buf[0x22]); in read()
553 mInternalAttrs = ZipEntry::getShortLE(&buf[0x24]); in read()
554 mExternalAttrs = ZipEntry::getLongLE(&buf[0x26]); in read()
555 mLocalHeaderRelOffset = ZipEntry::getLongLE(&buf[0x2a]); in read()
612 unsigned char buf[kCDELen]; in write() local
614 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
615 ZipEntry::putShortLE(&buf[0x04], mVersionMadeBy); in write()
616 ZipEntry::putShortLE(&buf[0x06], mVersionToExtract); in write()
617 ZipEntry::putShortLE(&buf[0x08], mGPBitFlag); in write()
618 ZipEntry::putShortLE(&buf[0x0a], mCompressionMethod); in write()
619 ZipEntry::putShortLE(&buf[0x0c], mLastModFileTime); in write()
620 ZipEntry::putShortLE(&buf[0x0e], mLastModFileDate); in write()
621 ZipEntry::putLongLE(&buf[0x10], mCRC32); in write()
622 ZipEntry::putLongLE(&buf[0x14], mCompressedSize); in write()
623 ZipEntry::putLongLE(&buf[0x18], mUncompressedSize); in write()
624 ZipEntry::putShortLE(&buf[0x1c], mFileNameLength); in write()
625 ZipEntry::putShortLE(&buf[0x1e], mExtraFieldLength); in write()
626 ZipEntry::putShortLE(&buf[0x20], mFileCommentLength); in write()
627 ZipEntry::putShortLE(&buf[0x22], mDiskNumberStart); in write()
628 ZipEntry::putShortLE(&buf[0x24], mInternalAttrs); in write()
629 ZipEntry::putLongLE(&buf[0x26], mExternalAttrs); in write()
630 ZipEntry::putLongLE(&buf[0x2a], mLocalHeaderRelOffset); in write()
632 if (fwrite(buf, 1, kCDELen, fp) != kCDELen) in write()