Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/io/
DBigBufferStreams.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 …]
DStringInputStream.cpp24 StringInputStream::StringInputStream(const 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 count = offset_; in BackUp()
42 offset_ -= count; in BackUp()
46 return offset_; in ByteCount()
DData.h42 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment()
46 return static_cast<const uint8_t*>(data_->data()) + offset_; in data()
52 if (next_read_ == offset_ + len_) { in Next()
56 *size = len_ - (next_read_ - offset_); in Next()
57 next_read_ = offset_ + len_; in Next()
62 if (count > next_read_ - offset_) { in BackUp()
63 next_read_ = offset_; in BackUp()
72 next_read_ = offset_; in Rewind()
76 size_t ByteCount() const override { return next_read_ - offset_; } in ByteCount()
84 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.h71 : file_(file), offset_(offset), len_(len) {} in FileSegment()
81 size_t offset_; variable
DStringInputStream.h50 size_t offset_; variable
DBigBufferInputStream.h49 size_t offset_ = 0; variable