Home
last modified time | relevance | path

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

/aosp14/frameworks/base/tools/aapt2/io/
H A DBigBufferStream.cpp31 if (offset_ == iter_->size) { in Next()
36 offset_ = 0; in Next()
39 *data = iter_->buffer.get() + offset_; in Next()
40 *size = iter_->size - offset_; in Next()
41 bytes_read_ += iter_->size - offset_; in Next()
42 offset_ = iter_->size; in Next()
47 if (count > offset_) { in BackUp()
48 bytes_read_ -= offset_; in BackUp()
49 offset_ = 0; in BackUp()
51 offset_ -= count; in BackUp()
[all …]
H A 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()
H A DData.h46 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment()
50 return static_cast<const uint8_t*>(data_->data()) + offset_; in data()
56 if (next_read_ == offset_ + len_) { in Next()
60 *size = len_ - (next_read_ - offset_); in Next()
61 next_read_ = offset_ + len_; in Next()
66 if (count > next_read_ - offset_) { in BackUp()
67 next_read_ = offset_; in BackUp()
76 next_read_ = offset_; in Rewind()
80 size_t ByteCount() const override { return next_read_ - offset_; } in ByteCount()
88 size_t offset_; variable
H A DFile.cpp36 if (offset_ <= data->size() - len_) { in OpenAsData()
37 return util::make_unique<DataSegment>(std::move(data), offset_, len_); in OpenAsData()
H A DFile.h73 : file_(file), offset_(offset), len_(len) {} in FileSegment()
86 size_t offset_; variable
H A DStringStream.h54 size_t offset_; variable
H A DBigBufferStream.h52 size_t offset_ = 0; variable
/aosp14/frameworks/base/cmds/idmap2/libidmap2/
H A DRawPrintVisitor.cpp163 stream_ << base::StringPrintf("%08zx: %02x", offset_, value) << " " << comment in print()
165 offset_ += sizeof(uint8_t); in print()
177 offset_ += sizeof(uint16_t); in print()
188 stream_ << base::StringPrintf("%08zx: %08x", offset_, value) << " " << comment << std::endl; 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()
214 offset_ += CalculatePadding(offset_); in align()
[all …]
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dsnapshot_reader.cpp164 uint64_t start_chunk = offset_ / block_size_; in Read()
165 uint64_t end_chunk = (offset_ + count - 1) / block_size_; in Read()
168 size_t start_offset = offset_ % block_size_; in Read()
177 offset_ += rv; in Read()
184 offset_ += rv; in Read()
192 offset_ += rv; in Read()
316 offset_ = offset; in Seek()
319 offset_ = static_cast<off64_t>(block_device_size_) + offset; in Seek()
322 offset_ += offset; in Seek()
329 return offset_; in Seek()
H A Dsnapshot_reader.h79 off64_t offset_ = 0; variable
/aosp14/system/core/property_service/libpropertyinfoserializer/
H A Dtrie_node_arena.h30 : arena_data_(arena_data), offset_(offset) {} in ArenaObjectPointer()
32 T* operator->() { return reinterpret_cast<T*>(arena_data_.data() + offset_); }
36 uint32_t offset_; variable
/aosp14/frameworks/base/cmds/idmap2/include/idmap2/
H A DRawPrintVisitor.h35 explicit RawPrintVisitor(std::ostream& stream) : stream_(stream), offset_(0) { in RawPrintVisitor()
52 size_t offset_; variable
/aosp14/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
H A Dcow_reader.cpp746 : reader_(reader), offset_(offset), data_length_(data_length) { in CowDataStream()
756 if (!reader_->GetRawBytes(offset_, buffer, to_read, read)) { in Read()
759 offset_ += *read; in Read()
768 uint64_t offset_; member in android::snapshot::CowDataStream