Lines Matching refs:buf

43     bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const override {  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 override { 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 override { in ReadAtOffset() argument
99 memcpy(buf, pos.unsafe_ptr(), len); in ReadAtOffset()
114 bool Append(uint8_t* buf, size_t bufSize) override { in Append() argument
119 memcpy(mOutput + mBytesWritten, buf, bufSize); in Append()
130 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer() argument
134 BufferWriter writer(buf, uncompressedLen); in inflateToBuffer()
138 /*static*/ bool ZipUtils::inflateToBuffer(int fd, void* buf, in inflateToBuffer() argument
142 BufferWriter writer(buf, uncompressedLen); in inflateToBuffer()
146 /*static*/ bool ZipUtils::inflateToBuffer(incfs::map_ptr<void> in, void* buf, in inflateToBuffer() argument
150 BufferWriter writer(buf, uncompressedLen); in inflateToBuffer()
154 static inline unsigned long get4LE(const unsigned char* buf) { in get4LE() argument
155 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); in get4LE()
232 unsigned char buf[8]; in examineGzip() local
236 if (fread(buf, 1, 8, fp) != 8) in examineGzip()
242 *pCRC32 = get4LE(&buf[0]); in examineGzip()
243 *pUncompressedLen = get4LE(&buf[4]); in examineGzip()