Home
last modified time | relevance | path

Searched refs:cursor_ (Results 1 – 22 of 22) sorted by relevance

/external/protobuf/js/binary/
Ddecoder.js79 this.cursor_ = 0;
105 this.cursor_ = 0;
161 this.cursor_ = 0;
201 if (this.cursor_ == this.elements_.length) {
205 this.nextValue_ = this.elements_[this.cursor_++];
247 this.cursor_ = 0;
332 this.cursor_ = 0;
359 this.cursor_ = this.start_;
383 this.cursor_ = this.start_;
392 return this.cursor_;
[all …]
/external/vixl/src/
Dcode-buffer-vixl.h55 ptrdiff_t cursor_offset = cursor_ - buffer_; in GetOffsetFrom()
71 VIXL_ASSERT((buffer_ <= rewound_cursor) && (rewound_cursor <= cursor_)); in Rewind()
72 cursor_ = rewound_cursor; in Rewind()
78 VIXL_ASSERT((offset >= 0) && (offset <= (cursor_ - buffer_))); in GetOffsetAddress()
95 VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_))); in GetRemainingBytes()
96 return (buffer_ + capacity_) - cursor_; in GetRemainingBytes()
103 VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_))); in GetSizeInBytes()
104 return cursor_ - buffer_; in GetSizeInBytes()
127 memcpy(cursor_, &value, sizeof(value)); in Emit()
128 cursor_ += sizeof(value); in Emit()
[all …]
Dcode-buffer-vixl.cc46 cursor_(NULL), in CodeBuffer()
69 cursor_ = buffer_; in CodeBuffer()
76 cursor_(reinterpret_cast<byte*>(buffer)), in CodeBuffer()
123 char* dst = reinterpret_cast<char*>(cursor_); in EmitString()
126 cursor_ = reinterpret_cast<byte*>(null_char) + 1; in EmitString()
133 memcpy(cursor_, data, size); in EmitData()
134 cursor_ = cursor_ + size; in EmitData()
141 VIXL_ASSERT(dst + size <= cursor_); in UpdateData()
147 byte* end = AlignUp(cursor_, 4); in Align()
148 const size_t padding_size = end - cursor_; in Align()
[all …]
/external/libchrome/mojo/public/cpp/bindings/lib/
Dbuffer.cc18 : data_(data), size_(size), cursor_(cursor) { in Buffer()
30 cursor_(0) { in Buffer()
45 cursor_ = other.cursor_; in operator =()
52 const size_t new_cursor = cursor_ + aligned_num_bytes; in Allocate()
53 if (new_cursor < cursor_ || (new_cursor > size_ && !message_.is_valid())) { in Allocate()
75 size_t block_start = cursor_; in Allocate()
76 cursor_ = new_cursor; in Allocate()
109 DCHECK_LE(message_payload_size_, cursor_); in Seal()
110 size_t additional_bytes = cursor_ - message_payload_size_; in Seal()
123 message_payload_size_ = cursor_; in Seal()
[all …]
Dbuffer.h61 size_t cursor() const { return cursor_; } in COMPONENT_EXPORT()
77 DCHECK_LT(index, cursor_); in COMPONENT_EXPORT()
123 size_t cursor_ = 0; in COMPONENT_EXPORT() local
/external/pigweed/pw_protobuf/
Dencoder.cc22 std::byte* original_cursor = cursor_; in WriteUint64()
25 return IncreaseParentSize(cursor_ - original_cursor); in WriteUint64()
46 cursor_ += written; in WriteVarint()
62 std::memmove(cursor_, ptr, size); in WriteRawBytes()
64 cursor_ += size; in WriteRawBytes()
79 std::byte* original_cursor = cursor_; in Push()
88 cursor_ = original_cursor; in Push()
94 PW_TRY(IncreaseParentSize(cursor_ - original_cursor)); in Push()
103 cursor = cursor_; in Push()
108 cursor_ += sizeof(*size_cursor); in Push()
[all …]
/external/llvm-project/flang/include/flang/Common/
Dformat.h55 stmt_{stmt}, cursor_{format - 1} { in ENUM_CLASS()
117 token.set_length(cursor_ - format_ - token.offset() + (cursor_ < end_)); in ENUM_CLASS()
136 const CHAR *cursor_{}; // current location in format_ in ENUM_CLASS()
153 for (++cursor_; cursor_ < end_; ++cursor_) { in NextChar()
154 if (*cursor_ != ' ') { in NextChar()
155 return toupper(*cursor_); in NextChar()
158 cursor_ = end_; // don't allow cursor_ > end_ in NextChar()
163 for (laCursor_ = cursor_ + 1; laCursor_ < end_; ++laCursor_) { in LookAheadChar()
174 cursor_ = laCursor_; in Advance()
185 token_.set_offset(cursor_ - format_); in NextToken()
[all …]
/external/grpc-grpc/src/core/lib/transport/
Dbyte_stream.cc58 GPR_ASSERT(cursor_ < backing_buffer_.count); in Next()
66 GPR_ASSERT(cursor_ < backing_buffer_.count); in Pull()
67 *slice = grpc_slice_ref_internal(backing_buffer_.slices[cursor_]); in Pull()
68 ++cursor_; in Pull()
117 if (cursor_ < cache_->cache_buffer_.count) return true; in Next()
126 if (cursor_ < cache_->cache_buffer_.count) { in Pull()
127 *slice = grpc_slice_ref_internal(cache_->cache_buffer_.slices[cursor_]); in Pull()
128 ++cursor_; in Pull()
137 ++cursor_; in Pull()
156 cursor_ = 0; in Reset()
Dbyte_stream.h103 size_t cursor_ = 0; variable
141 size_t cursor_ = 0; variable
/external/pigweed/pw_protobuf/public/pw_protobuf/
Dencoder.h38 cursor_(buffer.data()), in Encoder()
143 std::byte* original_cursor = cursor_; in WriteFixed32()
146 return IncreaseParentSize(cursor_ - original_cursor); in WriteFixed32()
157 std::byte* original_cursor = cursor_; in WriteFixed64()
160 return IncreaseParentSize(cursor_ - original_cursor); in WriteFixed64()
195 std::byte* original_cursor = cursor_; in WriteFloat()
198 return IncreaseParentSize(cursor_ - original_cursor); in WriteFloat()
211 std::byte* original_cursor = cursor_; in WriteDouble()
214 return IncreaseParentSize(cursor_ - original_cursor); in WriteDouble()
225 std::byte* original_cursor = cursor_; in WriteBytes()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/transport/
Dbyte_stream.cc115 if (cursor_ < cache_->cache_buffer_.count) return true; in Next()
124 if (cursor_ < cache_->cache_buffer_.count) { in Pull()
125 *slice = grpc_slice_ref_internal(cache_->cache_buffer_.slices[cursor_]); in Pull()
126 ++cursor_; in Pull()
135 ++cursor_; in Pull()
154 cursor_ = 0; in Reset()
Dbyte_stream.h142 size_t cursor_ = 0; variable
/external/flatbuffers/src/
Didl_parser.cpp244 if (!is_xdigit(cursor_[i])) in ParseHexNum()
247 std::string target(cursor_, cursor_ + nibbles); in ParseHexNum()
249 cursor_ += nibbles; in ParseHexNum()
254 if (static_cast<unsigned char>(*cursor_) != 0xef) return NoError(); in SkipByteOrderMark()
255 cursor_++; in SkipByteOrderMark()
256 if (static_cast<unsigned char>(*cursor_) != 0xbb) in SkipByteOrderMark()
258 cursor_++; in SkipByteOrderMark()
259 if (static_cast<unsigned char>(*cursor_) != 0xbf) in SkipByteOrderMark()
261 cursor_++; in SkipByteOrderMark()
271 bool seen_newline = cursor_ == source_; in Next()
[all …]
/external/google-breakpad/src/common/linux/
Delf_symbols_to_module.cc74 : value_size_(value_size), cursor_(buffer, big_endian) { in ELFSymbolIterator()
99 cursor_ in Fetch()
108 cursor_ in Fetch()
116 symbol_.at_end = !cursor_; in Fetch()
123 ByteCursor cursor_; member in google_breakpad::ELFSymbolIterator
/external/google-breakpad/src/common/dwarf/
Ddwarf2reader.cc1640 address_(address), entry_(NULL), cursor_(NULL) { } in State()
1721 uint64_t CursorOffset() { return entry_->offset + (cursor_ - entry_->start); } in CursorOffset()
1746 const uint8_t *cursor_; member in dwarf2reader::CallFrameInfo::State
1763 cursor_ = entry_->instructions; in InterpretCIE()
1764 while (cursor_ < entry_->end) in InterpretCIE()
1775 cursor_ = entry_->instructions; in InterpretFDE()
1776 while (cursor_ < entry_->end) in InterpretFDE()
1788 size_t bytes_left = entry_->end - cursor_; in ParseOperands()
1791 operands->register_number = reader_->ReadUnsignedLEB128(cursor_, &len); in ParseOperands()
1793 cursor_ += len; in ParseOperands()
[all …]
/external/google-breakpad/src/common/
Dstabs_reader.cc50 : value_size_(value_size), cursor_(buffer, big_endian) { in EntryIterator()
59 cursor_ in Fetch()
65 entry_.at_end = !cursor_; in Fetch()
Dstabs_reader.h172 ByteCursor cursor_; variable
/external/webrtc/modules/desktop_capture/
Ddesktop_and_cursor_composer.cc209 if (frame && cursor_) { in OnCaptureResult()
226 std::move(frame), *cursor_, relative_position, previous_cursor_rect_, in OnCaptureResult()
239 cursor_.reset(cursor); in OnMouseCursor()
Ddesktop_and_cursor_composer.h83 std::unique_ptr<MouseCursor> cursor_; variable
/external/flatbuffers/include/flatbuffers/
Didl.h659 : cursor_(nullptr), in ParserState()
667 cursor_ = source; in ResetState()
673 line_start_ = cursor_; in MarkNewLine()
678 FLATBUFFERS_ASSERT(cursor_ && line_start_ && cursor_ >= line_start_); in CursorPosition()
679 return static_cast<int64_t>(cursor_ - line_start_); in CursorPosition()
682 const char *cursor_; member
/external/rust/crates/quiche/deps/boringssl/src/crypto/test/
Dabi_test.cc339 int ret = InitAtSignalFrame(&cursor_); in UnwindCursor()
349 int ret = unw_step(&cursor_); in Step()
452 int ret = unw_get_reg(&cursor_, reg, &val); in GetReg()
462 unw_cursor_t cursor_; member in abi_test::internal::UnwindCursor
/external/boringssl/src/crypto/test/
Dabi_test.cc339 int ret = InitAtSignalFrame(&cursor_); in UnwindCursor()
349 int ret = unw_step(&cursor_); in Step()
452 int ret = unw_get_reg(&cursor_, reg, &val); in GetReg()
462 unw_cursor_t cursor_; member in abi_test::internal::UnwindCursor