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