Home
last modified time | relevance | path

Searched refs:ptr_ (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Darenastring.h59 if (ptr_ == default_value) { in Set()
62 *ptr_ = value; in Set()
68 return *ptr_; in Get()
73 if (ptr_ == default_value) { in Mutable()
76 return ptr_; in Mutable()
85 if (ptr_ == default_value) { in Release()
91 released = new ::std::string(*ptr_); in Release()
93 released = ptr_; in Release()
95 ptr_ = const_cast< ::std::string* >(default_value); in Release()
106 if (ptr_ == default_value) { in UnsafeArenaRelease()
[all …]
Dmetadata.h61 InternalMetadataWithArena() : ptr_(NULL) {} in InternalMetadataWithArena()
63 : ptr_ (arena) {} in InternalMetadataWithArena()
69 ptr_ = NULL; in ~InternalMetadataWithArena()
113 return ptr_; in raw_arena_ptr()
117 void* ptr_;
131 return reinterpret_cast<intptr_t>(ptr_) & kPtrTagMask; in PtrTag()
136 reinterpret_cast<intptr_t>(ptr_) & kPtrValueMask); in PtrValue()
148 ptr_ = reinterpret_cast<void*>( in mutable_unknown_fields_slow()
/frameworks/base/libs/androidfw/include/androidfw/
DUtil.h48 constexpr unique_cptr() : ptr_(nullptr) {} in unique_cptr()
49 constexpr explicit unique_cptr(std::nullptr_t) : ptr_(nullptr) {} in unique_cptr()
50 explicit unique_cptr(pointer ptr) : ptr_(ptr) {} in unique_cptr()
51 unique_cptr(unique_cptr&& o) noexcept : ptr_(o.ptr_) { o.ptr_ = nullptr; } in unique_cptr()
53 ~unique_cptr() { std::free(reinterpret_cast<void*>(ptr_)); } in ~unique_cptr()
60 std::free(reinterpret_cast<void*>(ptr_));
61 ptr_ = o.ptr_;
62 o.ptr_ = nullptr;
67 std::free(reinterpret_cast<void*>(ptr_));
68 ptr_ = nullptr;
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Dscoped_pyobject_ptr.h45 explicit ScopedPyObjectPtr(PyObject* p = NULL) : ptr_(p) { } in ptr_() function
49 Py_XDECREF(ptr_); in ~ScopedPyObjectPtr()
58 Py_XDECREF(ptr_);
59 ptr_ = p;
60 return ptr_;
66 PyObject* p = ptr_; in release()
67 ptr_ = NULL; in release()
72 assert(ptr_ != NULL);
73 return ptr_;
76 PyObject* get() const { return ptr_; } in get()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dstringpiece.cc51 : ptr_(x.ptr_ + pos), length_(x.length_ - pos) { in StringPiece()
59 : ptr_(x.ptr_ + pos), length_(std::min(len, x.length_ - pos)) { in StringPiece()
66 target->assign(ptr_, length_); in CopyToString()
70 target->append(ptr_, length_); in AppendToString()
75 ptr_ += x.length_; in Consume()
94 memcpy(buf, ptr_ + pos, ret); in copy()
107 const char *result = std::search(ptr_ + pos, ptr_ + length_, in find()
108 s.ptr_, s.ptr_ + s.length_); in find()
109 return result == ptr_ + length_ ? npos : result - ptr_; in find()
117 memchr(ptr_ + pos, c, length_ - pos)); in find()
[all …]
Dscoped_ptr.h68 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } in ptr_() function
74 delete ptr_; in ~scoped_ptr() local
81 if (p != ptr_) {
83 delete ptr_; variable
84 ptr_ = p;
91 assert(ptr_ != NULL);
92 return *ptr_;
95 assert(ptr_ != NULL);
96 return ptr_;
98 C* get() const { return ptr_; } in get()
[all …]
Dshared_ptr.h111 shared_ptr() : ptr_(NULL), control_block_(NULL) {}
114 : ptr_(ptr),
125 : ptr_(NULL),
131 : ptr_(NULL),
140 if (ptr_ != ptr.ptr_) {
149 if (ptr_ != ptr.ptr_) {
166 if (ptr_ != NULL) {
168 delete ptr_;
188 if (p != ptr_) {
203 swap(ptr_, r.ptr_);
[all …]
Dstringpiece.h180 const char* ptr_;
210 StringPiece() : ptr_(NULL), length_(0) {} in StringPiece()
213 : ptr_(str), length_(0) { in StringPiece()
222 : ptr_(str.data()), length_(0) { in StringPiece()
227 : ptr_(offset), length_(len) { in StringPiece()
245 const char* data() const { return ptr_; } in data()
251 ptr_ = NULL; in clear()
257 ptr_ = data; in set()
262 ptr_ = str; in set()
270 ptr_ = reinterpret_cast<const char*>(data); in set()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/
Dupb.h332 explicit PointerBase(T* ptr) : ptr_(ptr) {} in PointerBase()
333 operator T*() { return ptr_; }
334 operator Base*() { return (Base*)ptr_; }
337 T* ptr_;
1552 reffed_ptr() : ptr_(NULL) {}
1557 : ptr_(upb::upcast(val)) {
1559 assert(ptr_);
1560 ptr_->DonateRef(ref_donor, this);
1561 } else if (ptr_) {
1562 ptr_->Ref(this);
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/php/ext/google/protobuf/
Dupb.h312 explicit PointerBase(T* ptr) : ptr_(ptr) {} in PointerBase()
313 operator T*() { return ptr_; }
314 operator Base*() { return (Base*)ptr_; }
317 T* ptr_;
344 reffed_ptr() : ptr_(NULL) {} in reffed_ptr()
349 : ptr_(upb::upcast(val)) { in ptr_() function
351 assert(ptr_); in ptr_()
352 ptr_->DonateRef(ref_donor, this); in ptr_()
353 } else if (ptr_) { in ptr_()
354 ptr_->Ref(this); in ptr_()
[all …]
/frameworks/compile/mclinker/include/mcld/Support/
DCXADemangle.tcc4709 char* ptr_; member in mcld::arena
4726 arena() noexcept : ptr_(buf_) {} in arena()
4727 ~arena() {ptr_ = nullptr;} in ~arena()
4735 std::size_t used() const {return static_cast<std::size_t>(ptr_ - buf_);} in used()
4736 void reset() {ptr_ = buf_;} in reset()
4744 if (static_cast<std::size_t>(buf_ + N - ptr_) >= n) in allocate()
4746 char* r = ptr_; in allocate()
4747 ptr_ += n; in allocate()
4760 if (p + n == ptr_) in deallocate()
4761 ptr_ = p; in deallocate()