Lines Matching refs:buf
43 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset() argument
55 size_t read = fread(buf, 1, len, mFp); in ReadAtOffset()
74 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset() argument
75 return android::base::ReadFullyAtOffset(mFd, buf, len, offset); in ReadAtOffset()
89 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset() argument
94 memcpy(buf, mInput + offset, len); in ReadAtOffset()
109 bool Append(uint8_t* buf, size_t bufSize) override { in Append() argument
114 memcpy(mOutput + mBytesWritten, buf, bufSize); in Append()
125 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer() argument
129 BufferWriter writer(buf, uncompressedLen); in inflateToBuffer()
133 /*static*/ bool ZipUtils::inflateToBuffer(int fd, void* buf, in inflateToBuffer() argument
137 BufferWriter writer(buf, uncompressedLen); in inflateToBuffer()
141 /*static*/ bool ZipUtils::inflateToBuffer(const void* in, void* buf, in inflateToBuffer() argument
145 BufferWriter writer(buf, uncompressedLen); in inflateToBuffer()
149 static inline unsigned long get4LE(const unsigned char* buf) { in get4LE() argument
150 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); in get4LE()
227 unsigned char buf[8]; in examineGzip() local
231 if (fread(buf, 1, 8, fp) != 8) in examineGzip()
237 *pCRC32 = get4LE(&buf[0]); in examineGzip()
238 *pUncompressedLen = get4LE(&buf[4]); in examineGzip()