Home
last modified time | relevance | path

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

123

/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc63 position_(0), in ArrayInputStream()
71 if (position_ < size_) { in Next()
72 last_returned_size_ = std::min(block_size_, size_ - position_); in Next()
73 *data = data_ + position_; in Next()
75 position_ += last_returned_size_; in Next()
89 position_ -= count; in BackUp()
96 if (count > size_ - position_) { in Skip()
97 position_ = size_; in Skip()
100 position_ += count; in Skip()
106 return position_; in ByteCount()
[all …]
Dzero_copy_stream_impl_lite.h91 int position_; variable
123 int position_; variable
263 int64 position_; variable
352 int64 position_; variable
/external/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc32 position_(0), in MemoryInputStream()
41 return length_ - position_; in Available()
63 if (position_ >= length_) { in Read()
69 byte_t value = buffer_[position_++]; in Read()
85 if (position_ >= length_) { in Read()
91 size_t read_count = std::min<size_t>(length_ - position_, length); in Read()
95 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
96 position_ += read_count; in Read()
113 skip_count = std::max<int64_t>(0 - (int64_t)position_, n); in Skip()
114 position_ -= (size_t)(0 - skip_count); in Skip()
[all …]
Dfile_input_stream.cc30 position_(0), in FileInputStream()
39 return length_ - position_; in Available()
46 position_ = 0; in Close()
75 position_ += length; in Read()
97 size_t read_count = std::min<size_t>(length_ - position_, length); in Read()
102 position_ += actual_read; in Read()
119 skip_count = std::max<int64_t>(0 - (int64_t)position_, n); in Skip()
120 position_ -= (size_t)(0 - skip_count); in Skip()
121 fseek(file_, position_, SEEK_SET); in Skip()
123 skip_count = std::min<size_t>(length_ - position_, (size_t)n); in Skip()
[all …]
/external/v8/src/snapshot/
Dsnapshot-source-sink.h25 position_(0) {} in SnapshotByteSource()
28 : data_(payload.start()), length_(payload.length()), position_(0) {} in SnapshotByteSource()
32 bool HasMore() { return position_ < length_; } in HasMore()
35 DCHECK(position_ < length_); in Get()
36 return data_[position_++]; in Get()
39 void Advance(int by) { position_ += by; } in Advance()
46 DCHECK(position_ + 3 < length_); in GetInt()
47 uint32_t answer = data_[position_]; in GetInt()
48 answer |= data_[position_ + 1] << 8; in GetInt()
49 answer |= data_[position_ + 2] << 16; in GetInt()
[all …]
Dsnapshot-source-sink.cc16 memcpy(to, data_ + position_, number_of_bytes); in CopyRaw()
17 position_ += number_of_bytes; in CopyRaw()
44 CHECK(position_ + size <= length_); in GetBlob()
45 *data = &data_[position_]; in GetBlob()
/external/v8/src/zone/
Dzone-chunk-list.h107 uint32_t position_ = 0; member
141 T& operator*() { return current_->items()[position_]; }
143 return other.current_ == current_ && other.position_ == position_;
152 : current_(current), position_(position) {} in ZoneChunkListIterator()
155 ++position_; in MoveNext()
156 if (position_ >= current_->capacity_) { in MoveNext()
158 position_ = 0; in MoveNext()
163 if (position_ == 0) { in MoveRNext()
165 position_ = current_ ? current_->capacity_ - 1 : 0; in MoveRNext()
167 --position_; in MoveRNext()
[all …]
Dzone.cc48 position_(0), in Zone()
72 Address result = position_; in New()
76 const uintptr_t position = reinterpret_cast<uintptr_t>(position_); in New()
81 position_ += size_with_redzone; in New()
85 DCHECK(redzone_position + kASanRedzoneBytes == position_); in New()
108 position_ = limit_ = 0; in DeleteAll()
131 DCHECK(limit_ < position_ || in NewExpand()
133 reinterpret_cast<uintptr_t>(position_) < in NewExpand()
172 position_ = result + size; in NewExpand()
176 DCHECK(reinterpret_cast<uintptr_t>(position_) >= in NewExpand()
[all …]
/external/v8/src/
Djson-parser.cc110 position_(-1) { in JsonParser()
132 Handle<Object> arg1 = Handle<Smi>(Smi::FromInt(position_), isolate()); in ParseJson()
166 MessageLocation location(script, position_, position_ + 1); in ParseJson()
178 position_++; in Advance()
179 if (position_ >= source_length_) { in Advance()
182 c0_ = seq_source_->SeqOneByteStringGet(position_); in Advance()
184 c0_ = source_->Get(position_); in Advance()
220 if (source_->length() - position_ - 1 > length) { in ParseJsonString()
225 const uint8_t* input_chars = seq_source_->GetChars() + position_ + 1; in ParseJsonString()
234 position_ = position_ + length + 1; in ParseJsonString()
[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 …]
Dvalue-serializer.cc907 position_(data.start()), in ValueDeserializer()
923 if (position_ < end_ && in ReadHeader()
924 *position_ == static_cast<uint8_t>(SerializationTag::kVersion)) { in ReadHeader()
936 const uint8_t* peek_position = position_; in PeekTag()
955 if (position_ >= end_) return Nothing<SerializationTag>(); in ReadTag()
956 tag = static_cast<SerializationTag>(*position_); in ReadTag()
957 position_++; in ReadTag()
975 if (position_ >= end_) return Nothing<T>(); in ReadVarint()
976 uint8_t byte = *position_; in ReadVarint()
982 position_++; in ReadVarint()
[all …]
/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/v8/src/parsing/
Dscanner.h368 LiteralBuffer() : is_one_byte_(true), position_(0), backing_store_() {} in LiteralBuffer()
389 return is_one_byte() && keyword.length() == position_ && in is_contextual_keyword()
390 (memcmp(keyword.start(), backing_store_.start(), position_) == 0); in is_contextual_keyword()
395 DCHECK((position_ & 0x1) == 0); in two_byte_literal()
398 position_ >> 1); in two_byte_literal()
404 reinterpret_cast<const uint8_t*>(backing_store_.start()), position_); in one_byte_literal()
407 int length() const { return is_one_byte_ ? position_ : (position_ >> 1); } in length()
410 position_ -= delta * (is_one_byte_ ? kOneByteSize : kUC16Size); in ReduceLength()
414 position_ = 0; in Reset()
436 if (position_ >= backing_store_.length()) ExpandBuffer(); in INLINE()
[all …]
Dscanner.cc77 MemCopy(new_store.start(), backing_store_.start(), position_); in ExpandBuffer()
85 int new_content_size = position_ * kUC16Size; in ConvertToTwoByte()
95 for (int i = position_ - 1; i >= 0; i--) { in ConvertToTwoByte()
102 position_ = new_content_size; in ConvertToTwoByte()
107 if (position_ >= backing_store_.length()) ExpandBuffer(); in AddCharSlow()
110 backing_store_[position_] = static_cast<byte>(code_unit); in AddCharSlow()
111 position_ += kOneByteSize; in AddCharSlow()
118 *reinterpret_cast<uint16_t*>(&backing_store_[position_]) = code_unit; in AddCharSlow()
119 position_ += kUC16Size; in AddCharSlow()
121 *reinterpret_cast<uint16_t*>(&backing_store_[position_]) = in AddCharSlow()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawBaseClass.hpp53 PositionColorVertex (tcu::Vec4 position_, tcu::Vec4 color_) in PositionColorVertex()
54 : position (position_) in PositionColorVertex()
64 VertexElementData (tcu::Vec4 position_, tcu::Vec4 color_, deUint32 refVertexIndex_) in VertexElementData()
65 : PositionColorVertex (position_, color_) in VertexElementData()
/external/perfetto/src/base/
Dwatchdog_posix.cc208 buffer_[position_] = sample; in Push()
211 position_ = (position_ + 1) % size_; in Push()
214 filled_ = filled_ || position_ == 0; in Push()
223 position_ = 0; in Clear()
228 position_ = 0; in Reset()
/external/webrtc/webrtc/base/
Dmultipart.cc28 position_(0) { in MultipartStream()
91 ASSERT(0 == position_); in EndParts()
150 position_ += *read; in Read()
174 position_ = 0; in Close()
196 position_ = position; in SetPosition()
206 *position = position_; in GetPosition()
/external/perfetto/include/perfetto/base/
Dwatchdog_posix.h99 return buffer_[position_]; in OldestWhenFull()
106 return buffer_[(position_ + size_ - 1) % size_]; in NewestWhenFull()
114 size_t position_ = 0; variable
/external/swiftshader/third_party/subzero/src/
DIceFixups.h39 intptr_t position() const { return position_; } in position()
40 void set_position(intptr_t Position) { position_ = Position; } in set_position()
78 intptr_t position_ = 0;

123