Home
last modified time | relevance | path

Searched refs:len_ (Results 1 – 8 of 8) sorted by relevance

/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
DBCHeaderField.h42 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/
DChunkIterator.cpp25 CHECK(len_ != 0) << "called Next() after last chunk"; in Next()
32 len_ -= dtohl(this_chunk->size); in Next()
34 if (len_ != 0) { in Next()
46 if (len_ < sizeof(ResChunk_header)) { in VerifyNextChunkNonFatal()
59 if (size > len_) { in VerifyNextChunkNonFatal()
77 if (len_ < sizeof(ResChunk_header)) { in VerifyNextChunk()
99 if (size > len_) { in VerifyNextChunk()
/frameworks/base/libs/androidfw/include/androidfw/
DChunk.h86 len_(len), in ChunkIterator()
89 if (len_ != 0) { in ChunkIterator()
95 inline bool HasNext() const { return !HadError() && len_ != 0; }; in HasNext()
114 size_t len_; variable
/frameworks/base/tools/aapt2/io/
DData.h45 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment()
52 size_t size() const override { return len_; } in size()
55 if (next_read_ == offset_ + len_) { in Next()
59 *size = len_ - (next_read_ - offset_); in Next()
60 next_read_ = offset_ + len_; in Next()
88 size_t len_; variable
DFile.cpp36 if (offset_ <= data->size() - len_) { in OpenAsData()
37 return util::make_unique<DataSegment>(std::move(data), offset_, len_); in OpenAsData()
DFile.h78 : file_(file), offset_(offset), len_(len) {} in FileSegment()
96 size_t len_; variable
/frameworks/base/tools/aapt2/format/binary/
DResChunkPullParser.cpp57 if (offset == len_) { in Next()
60 } else if (offset + sizeof(ResChunk_header) > len_) { in Next()
75 } else if (offset + android::util::DeviceToHost32(current_chunk_->size) > len_) { in Next()
DResChunkPullParser.h65 size_t len_; variable
98 len_(len), in ResChunkPullParser()