/third_party/protobuf/src/google/protobuf/ |
D | arenastring.h | 66 void Set(T* p) { ptr_ = reinterpret_cast<uintptr_t>(p); } in Set() 67 T* Get() const { return reinterpret_cast<T*>(ptr_); } in Get() 69 bool IsNull() { return ptr_ == 0; } in IsNull() 72 uintptr_t ptr_; 78 if (ptr_ == default_value) { in Set() 81 *ptr_ = value; in Set() 91 inline const ::std::string& Get() const { return *ptr_; } in Get() 95 if (ptr_ == default_value) { in Mutable() 98 return ptr_; in Mutable() 107 if (ptr_ == default_value) { in Release() [all …]
|
D | metadata_lite.h | 61 InternalMetadata() : ptr_(nullptr) {} in InternalMetadata() 62 explicit InternalMetadata(Arena* arena) : ptr_(arena) {} in InternalMetadata() 84 PROTOBUF_ALWAYS_INLINE void* raw_arena_ptr() const { return ptr_; } in raw_arena_ptr() 133 void* ptr_; 147 return reinterpret_cast<intptr_t>(ptr_) & kPtrTagMask; in PtrTag() 152 return reinterpret_cast<U*>(reinterpret_cast<intptr_t>(ptr_) & in PtrValue() 172 ptr_ = container; in mutable_unknown_fields_slow() 173 ptr_ = reinterpret_cast<void*>(reinterpret_cast<intptr_t>(ptr_) | in mutable_unknown_fields_slow()
|
/third_party/protobuf/src/google/protobuf/stubs/ |
D | stringpiece.cc | 53 : ptr_(x.ptr_ + pos), length_(x.length_ - pos) { in StringPiece() 61 : ptr_(x.ptr_ + pos), length_(std::min(len, x.length_ - pos)) { in StringPiece() 68 target->assign(ptr_, length_); in CopyToString() 72 target->append(ptr_, length_); in AppendToString() 77 ptr_ += x.length_; in Consume() 96 memcpy(buf, ptr_ + pos, ret); in copy() 109 const char *result = std::search(ptr_ + pos, ptr_ + length_, in find() 110 s.ptr_, s.ptr_ + s.length_); in find() 111 return result == ptr_ + length_ ? npos : result - ptr_; in find() 119 memchr(ptr_ + pos, c, length_ - pos)); in find() [all …]
|
D | stringpiece.h | 181 const char* ptr_; 211 StringPiece() : ptr_(nullptr), length_(0) {} in StringPiece() 214 : ptr_(str), length_(0) { in StringPiece() 223 : ptr_(str.data()), length_(0) { in StringPiece() 228 : ptr_(offset), length_(len) { in StringPiece() 246 const char* data() const { return ptr_; } in data() 252 ptr_ = nullptr; in clear() 258 ptr_ = data; in set() 263 ptr_ = str; in set() 271 ptr_ = reinterpret_cast<const char*>(data); in set() [all …]
|
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/ |
D | string_piece.cc | 39 memcpy(buf, ptr_ + pos, ret); in copy() 47 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() 48 s.ptr_, s.ptr_ + s.length_); in find() 49 const size_type xpos = result - ptr_; in find() 57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() 58 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find() 68 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_; in rfind() 69 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() 70 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind() 78 if (ptr_[i] == c) in rfind() [all …]
|
D | string_piece.h | 49 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { } in StringPiece() 53 : ptr_(str.data()), length_(str.size()) { } in StringPiece() 55 : ptr_(offset), length_(len) { } in StringPiece() 61 const char* data() const { return ptr_; } in data() 67 ptr_ = NULL; in clear() 71 ptr_ = data; in set() 75 ptr_ = str; in set() 79 ptr_ = reinterpret_cast<const char*>(data); in set() 83 char operator[](size_type i) const { return ptr_[i]; } [all …]
|
/third_party/node/deps/v8/src/utils/ |
D | bit-vector.h | 18 uintptr_t* ptr_; // valid if data_length_ > 1 member 35 current_value_ = target_->data_.ptr_[current_index_]; 70 : target->data_.ptr_[0]), in Iterator() 104 data_.ptr_ = zone->NewArray<uintptr_t>(data_length_); in BitVector() 115 data_.ptr_ = zone->NewArray<uintptr_t>(data_length_); in BitVector() 117 data_.ptr_[i] = other.data_.ptr_[i]; in BitVector() 139 data_.ptr_[i] = other.data_.ptr_[i]; in CopyFrom() 153 data_.ptr_ = zone->NewArray<uintptr_t>(new_data_length); in Resize() 158 data_.ptr_[0] = old_data.inline_; in Resize() 161 data_.ptr_[i] = old_data.ptr_[i]; in Resize() [all …]
|
/third_party/protobuf/python/google/protobuf/pyext/ |
D | scoped_pyobject_ptr.h | 51 : ptr_(py_object) {} in ptr_() function 54 ~ScopedPythonPtr() { Py_XDECREF(ptr_); } in ~ScopedPythonPtr() 63 Py_XDECREF(ptr_); 64 ptr_ = p; 65 return ptr_; 71 PyObject* p = ptr_; in release() 72 ptr_ = NULL; in release() 76 PyObjectStruct* get() const { return ptr_; } in get() 78 PyObject* as_pyobject() const { return reinterpret_cast<PyObject*>(ptr_); } in as_pyobject() 82 void inc() const { Py_INCREF(ptr_); } in inc() [all …]
|
/third_party/node/deps/v8/src/objects/ |
D | slots.h | 26 ptr_ += kSlotDataSize; 31 ptr_ += kSlotDataSize; 35 ptr_ -= kSlotDataSize; 40 ptr_ -= kSlotDataSize; 44 bool operator<(const SlotBase& other) const { return ptr_ < other.ptr_; } 45 bool operator<=(const SlotBase& other) const { return ptr_ <= other.ptr_; } 46 bool operator>(const SlotBase& other) const { return ptr_ > other.ptr_; } 47 bool operator>=(const SlotBase& other) const { return ptr_ >= other.ptr_; } 48 bool operator==(const SlotBase& other) const { return ptr_ == other.ptr_; } 49 bool operator!=(const SlotBase& other) const { return ptr_ != other.ptr_; } [all …]
|
D | tagged-impl-inl.h | 23 if (HAS_SMI_TAG(ptr_)) { in ToSmi() 32 DCHECK(HAS_SMI_TAG(ptr_)); in ToSmi() 34 return Smi(ptr_); in ToSmi() 37 return Smi(DecompressTaggedSigned(static_cast<Tagged_t>(ptr_))); in ToSmi() 102 *result = HeapObject::cast(Object(ptr_)); in GetHeapObjectIfStrong() 115 Object(DecompressTaggedPointer(isolate, static_cast<Tagged_t>(ptr_)))); in GetHeapObjectIfStrong() 130 return HeapObject::cast(Object(ptr_)); in GetHeapObjectAssumeStrong() 140 Object(DecompressTaggedPointer(isolate, static_cast<Tagged_t>(ptr_)))); in GetHeapObjectAssumeStrong() 158 DCHECK(!HAS_WEAK_HEAP_OBJECT_TAG(ptr_)); in GetHeapObjectIfWeak() 175 DCHECK(!HAS_WEAK_HEAP_OBJECT_TAG(ptr_)); in GetHeapObjectIfWeak() [all …]
|
D | tagged-impl.h | 36 constexpr TaggedImpl() : ptr_{} {} in TaggedImpl() 37 explicit constexpr TaggedImpl(StorageType ptr) : ptr_(ptr) {} in TaggedImpl() 47 return static_cast<Tagged_t>(ptr_) == static_cast<Tagged_t>(other.ptr()); 54 return static_cast<Tagged_t>(ptr_) != static_cast<Tagged_t>(other.ptr()); 59 return static_cast<Tagged_t>(ptr_) < static_cast<Tagged_t>(other.ptr()); 62 constexpr StorageType ptr() const { return ptr_; } in ptr() 69 constexpr bool IsSmi() const { return HAS_SMI_TAG(ptr_); } in IsSmi() 79 (static_cast<uint32_t>(ptr_) == kClearedWeakHeapObjectLower32); in IsCleared() 90 DCHECK(kCanBeWeak || (!IsSmi() == HAS_STRONG_HEAP_OBJECT_TAG(ptr_))); in IsStrong() 91 return kCanBeWeak ? HAS_STRONG_HEAP_OBJECT_TAG(ptr_) : !IsSmi(); in IsStrong() [all …]
|
/third_party/gn/src/base/memory/ |
D | scoped_refptr.h | 173 constexpr scoped_refptr(T* p) : ptr_(p) { in scoped_refptr() 174 if (ptr_) in scoped_refptr() 175 AddRef(ptr_); in scoped_refptr() 180 scoped_refptr(const scoped_refptr& r) : scoped_refptr(r.ptr_) {} in scoped_refptr() 186 scoped_refptr(const scoped_refptr<U>& r) : scoped_refptr(r.ptr_) {} in scoped_refptr() 190 scoped_refptr(scoped_refptr&& r) noexcept : ptr_(r.ptr_) { r.ptr_ = nullptr; } in scoped_refptr() 196 scoped_refptr(scoped_refptr<U>&& r) noexcept : ptr_(r.ptr_) { in scoped_refptr() 197 r.ptr_ = nullptr; in scoped_refptr() 206 if (ptr_) in ~scoped_refptr() 207 Release(ptr_); in ~scoped_refptr() [all …]
|
D | weak_ptr.h | 155 ptr_ = 0; in reset() 165 uintptr_t ptr_; variable 195 ptr.ref_, static_cast<Derived*>(reinterpret_cast<Base*>(ptr.ptr_))); in AsWeakPtrImpl() 230 T* t = reinterpret_cast<U*>(other.ptr_); in WeakPtr() 231 ptr_ = reinterpret_cast<uintptr_t>(t); in WeakPtr() 237 T* t = reinterpret_cast<U*>(other.ptr_); in WeakPtr() 238 ptr_ = reinterpret_cast<uintptr_t>(t); in WeakPtr() 242 return ref_.is_valid() ? reinterpret_cast<T*>(ptr_) : nullptr; in get() 292 uintptr_t ptr_; variable 311 reinterpret_cast<T*>(ptr_)); in GetWeakPtr() [all …]
|
D | weak_ptr.cc | 57 WeakPtrBase::WeakPtrBase() : ptr_(0) {} in WeakPtrBase() 62 : ref_(ref), ptr_(ptr) { in WeakPtrBase() 63 DCHECK(ptr_); in WeakPtrBase() 66 WeakPtrFactoryBase::WeakPtrFactoryBase(uintptr_t ptr) : ptr_(ptr) { in WeakPtrFactoryBase() 67 DCHECK(ptr_); in WeakPtrFactoryBase() 71 ptr_ = 0; in ~WeakPtrFactoryBase()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | string_view.cc | 88 strings_internal::memmatch(ptr_ + pos, length_ - pos, s.ptr_, s.length_); in find() 89 return result ? result - ptr_ : npos; in find() 97 static_cast<const char*>(memchr(ptr_ + pos, c, length_ - pos)); in find() 98 return result != nullptr ? result - ptr_ : npos; in find() 105 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_; in rfind() 106 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() 107 return result != last ? result - ptr_ : npos; in rfind() 116 if (ptr_[i] == c) { in rfind() 130 if (s.length_ == 1) return find_first_of(s.ptr_[0], pos); in find_first_of() 133 if (tbl[ptr_[i]]) { in find_first_of() [all …]
|
D | string_view.h | 184 constexpr string_view() noexcept : ptr_(nullptr), length_(0) {} in string_view() 203 : ptr_(str), length_(str ? StrlenInternal(str) : 0) {} in string_view() 207 : ptr_(data), length_(CheckLengthInternal(len)) {} in string_view() 219 constexpr const_iterator begin() const noexcept { return ptr_; } in begin() 226 constexpr const_iterator end() const noexcept { return ptr_ + length_; } in end() 298 return ABSL_HARDENING_ASSERT(i < size()), ptr_[i]; 308 ? ptr_[i] in at() 311 ptr_[i]); in at() 318 return ABSL_HARDENING_ASSERT(!empty()), ptr_[0]; in front() 325 return ABSL_HARDENING_ASSERT(!empty()), ptr_[size() - 1]; in back() [all …]
|
/third_party/node/deps/v8/src/wasm/ |
D | function-body-decoder.h | 102 DCHECK_LT(ptr_, end_); in NON_EXPORTED_BASE() 103 ptr_ += OpcodeLength(ptr_, end_); in NON_EXPORTED_BASE() 107 return this->ptr_ == that.ptr_; in NON_EXPORTED_BASE() 110 return this->ptr_ != that.ptr_; in NON_EXPORTED_BASE() 114 const byte* ptr_; in NON_EXPORTED_BASE() 116 iterator_base(const byte* ptr, const byte* end) : ptr_(ptr), end_(end) {} in NON_EXPORTED_BASE() 126 DCHECK_LT(ptr_, end_); in NON_EXPORTED_BASE() 127 return static_cast<WasmOpcode>(*ptr_); in NON_EXPORTED_BASE() 142 DCHECK_LT(ptr_, end_); in NON_EXPORTED_BASE() 143 return static_cast<uint32_t>(ptr_ - start_); in NON_EXPORTED_BASE()
|
/third_party/icu/icu4c/source/common/unicode/ |
D | stringpiece.h | 62 const char* ptr_; 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() 99 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 106 : ptr_(reinterpret_cast<const char*>(str.data())), in StringPiece() 141 : ptr_(reinterpret_cast<const char*>(str.data())), in StringPiece() 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() 189 const char* data() const { return ptr_; } in data() 213 void clear() { ptr_ = nullptr; length_ = 0; } in clear() 221 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; } in set() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
D | stringpiece.h | 62 const char* ptr_; 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() 99 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 106 : ptr_(reinterpret_cast<const char*>(str.data())), in StringPiece() 141 : ptr_(reinterpret_cast<const char*>(str.data())), in StringPiece() 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() 189 const char* data() const { return ptr_; } in data() 213 void clear() { ptr_ = nullptr; length_ = 0; } in clear() 221 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; } in set() [all …]
|
/third_party/node/deps/icu-small/source/common/unicode/ |
D | stringpiece.h | 62 const char* ptr_; 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() 99 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 106 : ptr_(reinterpret_cast<const char*>(str.data())), in StringPiece() 141 : ptr_(reinterpret_cast<const char*>(str.data())), in StringPiece() 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() 189 const char* data() const { return ptr_; } in data() 213 void clear() { ptr_ = nullptr; length_ = 0; } in clear() 221 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; } in set() [all …]
|
/third_party/node/src/ |
D | aliased_struct.h | 40 const T* Data() const { return ptr_; } in Data() 42 T* Data() { return ptr_; } in Data() 44 const T& operator*() const { return *ptr_; } 46 T& operator*() { return *ptr_; } 48 const T* operator->() const { return ptr_; } 50 T* operator->() { return ptr_; } 55 T* ptr_; variable
|
D | aliased_struct-inl.h | 19 ptr_ = new (store_->Data()) T(std::forward<Args>(args)...); in AliasedStruct() 20 DCHECK_NOT_NULL(ptr_); in AliasedStruct() 36 ptr_ = that.ptr_; 40 that.ptr_ = nullptr; 47 if (ptr_ != nullptr) ptr_->~T(); in ~AliasedStruct()
|
/third_party/node/src/quic/ |
D | transportparams.cc | 58 TransportParams::TransportParams(Type type) : type_(type), ptr_(¶ms_) {} in TransportParams() 61 : type_(type), ptr_(ptr) {} in TransportParams() 112 ptr_ = nullptr; in TransportParams() 118 if (ptr_ == nullptr) { in Encode() 146 DCHECK(ptr_ == ¶ms_); in SetPreferredAddress() 173 DCHECK(ptr_ == ¶ms_); in GenerateStatelessResetToken() 181 DCHECK(ptr_ == ¶ms_); in GeneratePreferredAddressToken() 198 DCHECK_NOT_NULL(ptr_); in operator const ngtcp2_transport_params&() 199 return *ptr_; in operator const ngtcp2_transport_params&() 203 DCHECK_NOT_NULL(ptr_); in operator const ngtcp2_transport_params*() [all …]
|
/third_party/gn/src/gn/ |
D | pointer_set.h | 39 const void* ptr_; member 40 bool is_null() const { return !ptr_; } in is_null() 41 bool is_tombstone() const { return ptr_ == MakeTombstone(); } in is_tombstone() 43 size_t hash_value() const { return MakeHash(ptr_); } in hash_value() 103 node->ptr_ = ptr; in add() 117 node->ptr_ = node->MakeTombstone(); in erase() 156 return &const_cast<T*>(static_cast<const T*>(node_->ptr_)); 159 return const_cast<T*>(static_cast<const T*>(node_->ptr_)); 196 return NodeLookup(hash, [&](NodeType* node) { return node->ptr_ == ptr; }); in Lookup()
|
/third_party/node/deps/v8/src/base/ |
D | page-allocator.cc | 64 : page_allocator_(page_allocator), ptr_(ptr), size_(size) {} in SharedMemoryMapping() 65 ~SharedMemoryMapping() override { page_allocator_->FreePages(ptr_, size_); } in ~SharedMemoryMapping() 66 void* GetMemory() const override { return ptr_; } in GetMemory() 70 void* ptr_; member in v8::base::SharedMemoryMapping 77 : allocator_(allocator), ptr_(memory), size_(size) {} in SharedMemory() 78 void* GetMemory() const override { return ptr_; } in GetMemory() 82 if (allocator_->RemapShared(ptr_, new_address, size_)) { in RemapTo() 90 ~SharedMemory() override { allocator_->FreePages(ptr_, size_); } in ~SharedMemory() 94 void* ptr_; member in v8::base::SharedMemory
|