Home
last modified time | relevance | path

Searched refs:position_ (Results 1 – 25 of 31) sorted by relevance

12

/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc61 position_(0), in ArrayInputStream()
69 if (position_ < size_) { in Next()
70 last_returned_size_ = min(block_size_, size_ - position_); in Next()
71 *data = data_ + position_; in Next()
73 position_ += last_returned_size_; in Next()
87 position_ -= count; in BackUp()
94 if (count > size_ - position_) { in Skip()
95 position_ = size_; in Skip()
98 position_ += count; in Skip()
104 return position_; in ByteCount()
[all …]
Dzero_copy_stream_impl_lite.h85 int position_; variable
117 int position_; variable
231 int64 position_; variable
320 int64 position_; variable
/external/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc30 position_(0), in MemoryInputStream()
39 return length_ - position_; in Available()
61 if (position_ >= length_) { in Read()
67 byte_t value = buffer_[position_++]; in Read()
83 if (position_ >= length_) { in Read()
89 size_t read_count = std::min<size_t>(length_ - position_, length); in Read()
93 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
94 position_ += read_count; in Read()
111 skip_count = std::max<int64_t>(0 - (int64_t)position_, n); in Skip()
112 position_ -= (size_t)(0 - skip_count); in Skip()
[all …]
Dfile_input_stream.cc28 position_(0), in FileInputStream()
37 return length_ - position_; in Available()
44 position_ = 0; in Close()
73 position_ += length; in Read()
95 size_t read_count = std::min<size_t>(length_ - position_, length); in Read()
100 position_ += actual_read; in Read()
117 skip_count = std::max<int64_t>(0 - (int64_t)position_, n); in Skip()
118 position_ -= (size_t)(0 - skip_count); in Skip()
119 fseek(file_, position_, SEEK_SET); in Skip()
121 skip_count = std::min<size_t>(length_ - position_, (size_t)n); in Skip()
[all …]
Dfile_input_stream.h51 size_t position_; variable
Dmemory_input_stream.h51 size_t position_; variable
/external/v8/src/
Dsnapshot-source-sink.cc18 : data_(array), length_(length), position_(0) { in SnapshotByteSource()
26 DCHECK(position_ < length_); // Require at least one byte left. in GetUnalignedInt()
27 int32_t answer = data_[position_]; in GetUnalignedInt()
28 answer |= data_[position_ + 1] << 8; in GetUnalignedInt()
29 answer |= data_[position_ + 2] << 16; in GetUnalignedInt()
30 answer |= data_[position_ + 3] << 24; in GetUnalignedInt()
36 MemCopy(to, data_ + position_, number_of_bytes); in CopyRaw()
37 position_ += number_of_bytes; in CopyRaw()
68 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; in AtEOF()
69 for (int x = position_; x < length_; x++) { in AtEOF()
[all …]
Dzone.cc50 position_(0), in Zone()
72 position_ += ((~size) & 4) & (reinterpret_cast<intptr_t>(position_) & 4); in New()
78 Address result = position_; in New()
87 if (size_with_redzone > limit_ - position_) { in New()
90 position_ += size_with_redzone; in New()
95 DCHECK(redzone_position + kASanRedzoneBytes == position_); in New()
141 position_ = RoundUp(start, kAlignment); in DeleteAll()
150 position_ = limit_ = 0; in DeleteAll()
205 DCHECK(size > limit_ - position_); in NewExpand()
244 position_ = result + size; in NewExpand()
[all …]
Dutils.cc20 position_ = 0; in SimpleStringBuilder()
30 DCHECK(!is_finalized() && position_ + n <= buffer_.length()); in AddSubstring()
32 MemCopy(&buffer_[position_], s, n * kCharSize); in AddSubstring()
33 position_ += n; in AddSubstring()
54 position_ += digits; in AddDecimalInteger()
56 buffer_[position_ - i] = '0' + static_cast<char>(number % 10); in AddDecimalInteger()
63 DCHECK(!is_finalized() && position_ <= buffer_.length()); in Finalize()
65 if (position_ == buffer_.length()) { in Finalize()
66 position_--; in Finalize()
68 for (int i = 3; i > 0 && position_ > i; --i) buffer_[position_ - i] = '.'; in Finalize()
[all …]
Djson-parser.h38 position_(-1) { in JsonParser()
52 position_++; in Advance()
53 if (position_ >= source_length_) { in Advance()
56 c0_ = seq_source_->SeqOneByteStringGet(position_); in Advance()
58 c0_ = source_->Get(position_); in Advance()
103 if (source_->length() - position_ - 1 > length) { in ParseJsonString()
108 const uint8_t* input_chars = seq_source_->GetChars() + position_ + 1; in ParseJsonString()
118 position_ = position_ + length + 1; in ParseJsonString()
198 int position_; variable
248 position_, in ParseJson()
[all …]
Dscanner.h196 LiteralBuffer() : is_one_byte_(true), position_(0), backing_store_() { } in LiteralBuffer()
205 if (position_ >= backing_store_.length()) ExpandBuffer(); in INLINE()
208 backing_store_[position_] = static_cast<byte>(code_unit); in INLINE()
209 position_ += kOneByteSize; in INLINE()
215 *reinterpret_cast<uint16_t*>(&backing_store_[position_]) = code_unit; in INLINE()
216 position_ += kUC16Size; in INLINE()
222 return is_one_byte() && keyword.length() == position_ && in is_contextual_keyword()
223 (memcmp(keyword.start(), backing_store_.start(), position_) == 0); in is_contextual_keyword()
228 DCHECK((position_ & 0x1) == 0); in two_byte_literal()
231 position_ >> 1); in two_byte_literal()
[all …]
Dsnapshot-source-sink.h25 bool HasMore() { return position_ < length_; } in HasMore()
28 DCHECK(position_ < length_); in Get()
29 return data_[position_++]; in Get()
34 void Advance(int by) { position_ += by; } in Advance()
55 int position() { return position_; } in position()
60 int position_; variable
Dgdb-jit.cc42 position_(0), in Writer()
52 return position_; in position()
79 Ensure(position_ + sizeof(T)); in Write()
80 *RawSlotAt<T>(position_) = val; in Write()
81 position_ += sizeof(T); in Write()
97 uintptr_t slot_position = position_; in CreateSlotsHere()
98 position_ += sizeof(T) * count; in CreateSlotsHere()
99 Ensure(position_); in CreateSlotsHere()
115 uintptr_t delta = position_ % align; in Align()
118 Ensure(position_ += padding); in Align()
[all …]
Dutils.h791 : buffer_(buffer, size), position_(0) { }
800 return position_;
804 void Reset() { position_ = 0; }
811 DCHECK(!is_finalized() && position_ < buffer_.length());
812 buffer_[position_++] = c;
835 int position_;
837 bool is_finalized() const { return position_ < 0; }
Dzone.h119 Address position_; variable
/external/sfntly/cpp/src/sfntly/data/
Dfont_input_stream.cc24 : stream_(is), position_(0), length_(0), bounded_(false) { in FontInputStream()
28 : stream_(is), position_(0), length_(length), bounded_(true) { in FontInputStream()
68 if (!stream_ || (bounded_ && position_ >= length_)) { in Read()
73 position_++; in Read()
80 (bounded_ && position_ >= length_)) { in Read()
84 bounded_ ? std::min<int32_t>(length, (int32_t)(length_ - position_)) : in Read()
87 position_ += bytes_read; in Read()
135 position_ += skipped; in Skip()
Dfont_output_stream.cc25 position_(0) { in FontOutputStream()
35 position_++; in Write()
42 position_ += b->size(); in Write()
59 position_ += len; in Write()
74 position_ += len; in Write()
126 position_ = 0; in Close()
Dfont_output_stream.h51 virtual size_t position() { return position_; } in position()
74 size_t position_; variable
Dfont_input_stream.h75 virtual int64_t position() { return position_; } in position()
90 int64_t position_; variable
/external/google-breakpad/src/client/
Dminidump_file_writer.h117 inline MDRVA position() const { return position_; } in position()
134 MDRVA position_; variable
160 position_(writer->position()), in UntypedMDRVA()
168 inline MDRVA position() const { return position_; } in position()
176 position_ }; in location()
186 return Copy(position_, src, size); in Copy()
194 MDRVA position_; variable
Dminidump_file_writer.cc54 position_(0), in MinidumpFileWriter()
84 if (-1 == ftruncate(file_, position_)) { in Close()
225 if (position_ + aligned_size > size_) { in Allocate()
240 MDRVA current_position = position_; in Allocate()
241 position_ += static_cast<MDRVA>(aligned_size); in Allocate()
273 position_ = writer_->Allocate(size_);
274 return position_ != MinidumpFileWriter::kInvalidMDRVA;
280 assert(pos + size <= position_ + size_);
Dminidump_file_writer-inl.h75 static_cast<MDRVA>(position_ + index * minidump_size<MDType>::size()), in CopyIndex()
85 static_cast<MDRVA>(position_ + minidump_size<MDType>::size() in CopyIndexAfterObject()
92 return writer_->Copy(position_, &data_, minidump_size<MDType>::size()); in Flush()
/external/ceres-solver/internal/ceres/
Dblock_structure.h52 Block(int size_, int position_) : size(size_), position(position_) {} in Block()
60 Cell(int block_id_, int position_) in Cell()
61 : block_id(block_id_), position(position_) {} in Cell()
Dline_search.cc105 position_(evaluator->NumParameters()), in LineSearchFunction()
114 position_ = position; in Init()
120 if (!evaluator_->Plus(position_.data(), in Evaluate()
Dline_search.h240 Vector position_; variable

12