Lines Matching refs:buf
76 uint8_t* buf = NULL; in rewriteCentralDir() local
92 buf = new uint8_t[EndOfCentralDir::kMaxEOCDSearch]; in rewriteCentralDir()
93 if (buf == NULL) { in rewriteCentralDir()
114 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { in rewriteCentralDir()
122 if (buf[i] == 0x50 && in rewriteCentralDir()
123 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) in rewriteCentralDir()
135 result = mEOCD.readBuf(buf + i, readAmount - i); in rewriteCentralDir()
196 delete[] buf; in rewriteCentralDir()
212 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, int len) in readBuf() argument
224 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) in readBuf()
227 diskNumber = ZipEntry::getShortLE(&buf[0x04]); in readBuf()
228 diskWithCentralDir = ZipEntry::getShortLE(&buf[0x06]); in readBuf()
229 numEntries = ZipEntry::getShortLE(&buf[0x08]); in readBuf()
230 mTotalNumEntries = ZipEntry::getShortLE(&buf[0x0a]); in readBuf()
231 mCentralDirOffset = ZipEntry::getLongLE(&buf[0x10]); in readBuf()