Home
last modified time | relevance | path

Searched refs:offset_ (Results 1 – 15 of 15) sorted by relevance

/frameworks/libs/binary_translation/tools/nogrod/
Dbyte_input_stream.cc26 : buffer_(buffer), size_(size), offset_(0) {} in ByteInputStream()
29 return offset_ < size_; in available()
33 return offset_; in offset()
37 CHECK(offset_ < size_); in ReadUint8()
38 return buffer_[offset_++]; in ReadUint8()
43 CHECK(offset_ + sizeof(result) <= size_); in ReadUint16()
44 memcpy(&result, buffer_ + offset_, sizeof(result)); in ReadUint16()
45 offset_ += sizeof(result); in ReadUint16()
52 CHECK_LE(offset_ + 3, size_); in ReadUint24()
53 memcpy(&result, buffer_ + offset_, 3); in ReadUint24()
[all …]
Ddwarf_info.h51 [[nodiscard]] uint64_t offset() const { return offset_; } in offset()
74 uint64_t offset_; variable
Dbyte_input_stream.h47 uint64_t offset_; variable
Ddwarf_info.cc407 : compilation_unit_header_(cu), parent_(parent), offset_(offset), tag_(tag) {} in DwarfDie()
/frameworks/base/libs/androidfw/
DBigBufferStream.cpp32 if (offset_ == iter_->size) { in Next()
37 offset_ = 0; in Next()
40 *data = iter_->buffer.get() + offset_; in Next()
41 *size = iter_->size - offset_; in Next()
42 bytes_read_ += iter_->size - offset_; in Next()
43 offset_ = iter_->size; in Next()
48 if (count > offset_) { in BackUp()
49 bytes_read_ -= offset_; in BackUp()
50 offset_ = 0; in BackUp()
52 offset_ -= count; in BackUp()
[all …]
/frameworks/base/tools/aapt2/io/
DStringStream.cpp24 StringInputStream::StringInputStream(StringPiece str) : str_(str), offset_(0u) { in StringInputStream()
28 if (offset_ == str_.size()) { in Next()
32 *data = str_.data() + offset_; in Next()
33 *size = str_.size() - offset_; in Next()
34 offset_ = str_.size(); in Next()
39 if (count > offset_) { in BackUp()
40 offset_ = 0u; in BackUp()
42 offset_ -= count; in BackUp()
47 return offset_; in ByteCount()
DData.h45 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment()
49 return static_cast<const uint8_t*>(data_->data()) + offset_; in data()
55 if (next_read_ == offset_ + len_) { in Next()
59 *size = len_ - (next_read_ - offset_); in Next()
60 next_read_ = offset_ + len_; in Next()
65 if (count > next_read_ - offset_) { in BackUp()
66 next_read_ = offset_; in BackUp()
75 next_read_ = offset_; in Rewind()
79 size_t ByteCount() const override { return next_read_ - offset_; } in ByteCount()
87 size_t offset_; 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()
95 size_t offset_; variable
DStringStream.h55 size_t offset_; variable
/frameworks/base/cmds/idmap2/libidmap2/
DRawPrintVisitor.cpp163 stream_ << base::StringPrintf("%08zx: %02x", offset_, value) << " " << comment in print()
165 offset_ += sizeof(uint8_t); in print()
176 stream_ << base::StringPrintf("%08zx: %04x", offset_, value) << " " << comment << '\n'; in print()
177 offset_ += sizeof(uint16_t); in print()
188 stream_ << base::StringPrintf("%08zx: %08x", offset_, value) << " " << comment << '\n'; in print()
189 offset_ += sizeof(uint32_t); in print()
200 stream_ << base::StringPrintf("%08zx: %08x", offset_, (uint32_t)value.size()) << " " << comment in print()
202 offset_ += sizeof(uint32_t); in print()
204 stream_ << base::StringPrintf("%08zx: ", offset_) << "........ " << comment; in print()
205 offset_ += value.size() + CalculatePadding(value.size()); in print()
[all …]
/frameworks/base/cmds/idmap2/include/idmap2/
DRawPrintVisitor.h35 explicit RawPrintVisitor(std::ostream& stream) : stream_(stream), offset_(0) { in RawPrintVisitor()
52 size_t offset_; variable
/frameworks/base/libs/androidfw/include/androidfw/
DBigBufferStream.h58 size_t offset_ = 0; variable
/frameworks/av/media/codec2/vndk/
DC2Buffer.cpp328 C2ConstLinearBlock C2ConstLinearBlock::subBlock(size_t offset_, size_t size_) const { in subBlock() argument
329 C2LinearRange subRange(*mImpl, offset_, size_); in subBlock()
358 C2ConstLinearBlock C2LinearBlock::share(size_t offset_, size_t size_, C2Fence fence) { in share() argument
359 return ConstLinearBlockBuddy(mImpl, C2LinearRange(*this, offset_, size_), fence); in share()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h257 inline constexpr C2Segment(uint32_t offset_, uint32_t size_) in C2Segment()
258 : offset(offset_), in C2Segment()