Searched refs:len_ (Results 1 – 9 of 9) sorted by relevance
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/ |
D | BCHeaderField.h | 42 ID_(ID), len_(len), data_(data) {} in BCHeaderField() 45 return (kTagLenSize + len_ + 3) & ~3; in GetTotalSize() 49 size_t fields_len = kTagLenSize + len_; in Write() 55 len_ > max_uint16_t) return false; in Write() 58 WriteFixedSubfield(static_cast<FixedSubfield>(len_), in Write() 60 memcpy(buf + kTagLenSize, data_, len_); in Write() 74 len_ = static_cast<size_t>(field); in Read() 75 if (buf_len < kTagLenSize + len_) return false; in Read() 76 memcpy(data_, buf + kTagLenSize, len_); in Read() 82 ID_, static_cast<int>(len_), static_cast<int>(GetTotalSize())); in Print() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ChunkIterator.cpp | 24 CHECK(len_ != 0) << "called Next() after last chunk"; in Next() 31 len_ -= dtohl(this_chunk->size); in Next() 33 if (len_ != 0) { in Next() 45 if (len_ < sizeof(ResChunk_header)) { in VerifyNextChunkNonFatal() 51 if (size > len_) { in VerifyNextChunkNonFatal() 71 if (len_ < sizeof(ResChunk_header)) { in VerifyNextChunk() 88 if (size > len_) { in VerifyNextChunk()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Chunk.h | 89 len_(len), in ChunkIterator() 92 if (len_ != 0) { in ChunkIterator() 98 inline bool HasNext() const { return !HadError() && len_ != 0; }; in HasNext() 117 size_t len_; variable
|
/frameworks/base/tools/aapt2/io/ |
D | Data.h | 46 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment() 53 size_t size() const override { return len_; } in size() 56 if (next_read_ == offset_ + len_) { in Next() 60 *size = len_ - (next_read_ - offset_); in Next() 61 next_read_ = offset_ + len_; in Next() 89 size_t len_; variable
|
D | File.cpp | 36 if (offset_ <= data->size() - len_) { in OpenAsData() 37 return util::make_unique<DataSegment>(std::move(data), offset_, len_); in OpenAsData()
|
D | File.h | 74 : file_(file), offset_(offset), len_(len) {} in FileSegment() 88 size_t len_; variable
|
/frameworks/base/cmds/idmap/ |
D | inspect.cpp | 23 size_t len_; member in __anon0cfca4b00111::IdmapBuffer 26 IdmapBuffer() : buf_((const char *)MAP_FAILED), len_(0), pos_(0) {} in IdmapBuffer() 30 munmap(const_cast<char*>(buf_), len_); in ~IdmapBuffer() 42 len_ = st.st_size; in init() 47 … if ((buf_ = (const char*)mmap(NULL, len_, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { in init() 62 if (pos_ + sizeof(uint32_t) > len_) { in nextUint32() 84 if (pos_ + sizeof(uint16_t) > len_) { in nextUint16() 105 if (pos_ + PATH_LENGTH > len_) { in nextPath()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | ResChunkPullParser.cpp | 55 if (offset == len_) { in Next() 58 } else if (offset + sizeof(ResChunk_header) > len_) { in Next() 73 } else if (offset + util::DeviceToHost32(current_chunk_->size) > len_) { in Next()
|
D | ResChunkPullParser.h | 65 size_t len_; variable 97 len_(len), in ResChunkPullParser()
|