Lines Matching refs:buf
99 uint8_t buf[EndOfCentralDir::kMaxEOCDSearch]; in rewriteCentralDir() local
100 if (fread(buf, 1, readAmount, mZipFp) != readAmount) { in rewriteCentralDir()
108 if (buf[i] == 0x50 && in rewriteCentralDir()
109 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) in rewriteCentralDir()
120 status_t result = mEOCD.readBuf(buf + i, readAmount - i); in rewriteCentralDir()
187 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, int len) in readBuf() argument
199 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) in readBuf()
202 diskNumber = ZipEntry::getShortLE(&buf[0x04]); in readBuf()
203 diskWithCentralDir = ZipEntry::getShortLE(&buf[0x06]); in readBuf()
204 numEntries = ZipEntry::getShortLE(&buf[0x08]); in readBuf()
205 mTotalNumEntries = ZipEntry::getShortLE(&buf[0x0a]); in readBuf()
206 mCentralDirOffset = ZipEntry::getLongLE(&buf[0x10]); in readBuf()