Searched defs:buf (Results 1 - 5 of 5) sorted by relevance
/build/tools/zipalign/ |
H A D | ZipEntry.cpp | 405 unsigned char buf[kLFHLen]; local 410 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { 415 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 421 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); 422 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); 423 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); 424 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); 425 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); 426 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); 427 mCompressedSize = ZipEntry::getLongLE(&buf[ 471 unsigned char buf[kLFHLen]; local 539 unsigned char buf[kCDELen]; local 629 unsigned char buf[kCDELen]; local [all...] |
H A D | ZipEntry.h | 111 static inline unsigned short getShortLE(const unsigned char* buf) { argument 112 return buf[0] | (buf[1] << 8); 114 static inline unsigned long getLongLE(const unsigned char* buf) { argument 115 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 117 static inline void putShortLE(unsigned char* buf, short val) { argument 118 buf[ 121 putLongLE(unsigned char* buf, long val) argument [all...] |
H A D | ZipFile.cpp | 207 unsigned char* buf = NULL; local 223 buf = new unsigned char[EndOfCentralDir::kMaxEOCDSearch]; 224 if (buf == NULL) { 245 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { 253 if (buf[i] == 0x50 && 254 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) 256 ALOGV("+++ Found EOCD at buf+%d\n", i); 267 result = mEOCD.readBuf(buf + i, readAmount - i); 341 delete[] buf; 1144 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) cons 1156 void* buf = malloc(unlen); local 1220 readBuf(const unsigned char* buf, int len) argument 1264 unsigned char buf[kEOCDLen]; local [all...] |
/build/libs/host/ |
H A D | CopyFile.c | 118 unsigned char buf[8192]; local 125 readCount = read(srcFd, buf, sizeof(buf)); 133 writeCount = write(dstFd, buf, readCount); 146 if (readCount < (ssize_t) sizeof(buf))
|
/build/tools/atree/ |
H A D | files.cpp | 186 char* buf = NULL; local 216 buf = (char*)malloc(size+1); 217 if (buf == NULL) { 224 if (1 != fread(buf, size, 1, f)) { 232 p = buf; 233 q = buf+size; 244 p = buf; 320 if (buf != NULL) { 321 free(buf);
|
Completed in 217 milliseconds