/fuchsia/zircon/system/ulib/fbl/include/fbl/ |
H A D | unique_free_ptr.h | 20 constexpr unique_free_ptr() : ptr_(nullptr) {} 23 explicit unique_free_ptr(T* t) : ptr_(t) { } 26 free(ptr_); 29 unique_free_ptr(unique_free_ptr&& o) : ptr_(o.release()) {} 41 bool operator==(decltype(nullptr)) const { return (ptr_ == nullptr); } 42 bool operator!=(decltype(nullptr)) const { return (ptr_ != nullptr); } 45 bool operator==(const unique_free_ptr& o) const { return ptr_ == o.ptr_; } 46 bool operator!=(const unique_free_ptr& o) const { return ptr_ != o.ptr_; } 86 T* ptr_; member in class:fbl::unique_free_ptr [all...] |
H A D | unique_ptr.h | 24 constexpr unique_ptr() : ptr_(nullptr) {} 27 explicit unique_ptr(T* t) : ptr_(t) { } 30 recycle(ptr_); 33 unique_ptr(unique_ptr&& o) : ptr_(o.release()) {} 45 bool operator==(decltype(nullptr)) const { return (ptr_ == nullptr); } 46 bool operator!=(decltype(nullptr)) const { return (ptr_ != nullptr); } 49 bool operator==(const unique_ptr& o) const { return ptr_ == o.ptr_; } 50 bool operator!=(const unique_ptr& o) const { return ptr_ != o.ptr_; } 130 T* ptr_; member in class:fbl::unique_ptr 196 T* ptr_; member in class:fbl::unique_ptr [all...] |
H A D | array.h | 15 constexpr Array() : ptr_(nullptr), count_(0U) {} 18 Array(T* array, size_t count) : ptr_(array), count_(count) {} 20 Array(Array&& other) : ptr_(nullptr), count_(other.count_) { 21 ptr_ = other.release(); 42 T* t = ptr_; 43 ptr_ = nullptr; 53 T* ptr = ptr_; 54 ptr_ = t; 60 T* t = ptr_; 61 ptr_ [all...] |
H A D | ref_ptr.h | 64 : ptr_(nullptr) {} 70 : ptr_(p) { 71 if (ptr_) 72 ptr_->AddRef(); 77 : RefPtr(r.ptr_) {} 84 RefPtr(const RefPtr<U>& r) : RefPtr(r.ptr_) { 97 if (r.ptr_) { 98 r.ptr_->AddRef(); 100 T* old = ptr_; 101 ptr_ 242 T* ptr_; member in class:fbl::final [all...] |
H A D | vector.h | 68 : ptr_(nullptr), size_(0U), capacity_(0U) {} 71 : ptr_(nullptr), size_(other.size_), capacity_(other.capacity_) { 72 ptr_ = other.release(); 77 : ptr_(init.size() != 0u ? reinterpret_cast<T*>(AllocatorTraits::Allocate( 82 T* out = ptr_; 131 T* t = ptr_; 132 ptr_ = other.ptr_; 133 other.ptr_ = t; 187 auto val = fbl::move(ptr_[inde 439 T* ptr_; member in class:fbl::Vector [all...] |
/fuchsia/zircon/system/dev/tee/optee/ |
H A D | util.cpp | 14 : ptr_{data} { 25 ::memcpy(out_hi, ptr_, sizeof(*out_hi)); 26 ::memcpy(out_low, ptr_ + sizeof(*out_hi), sizeof(*out_low));
|
H A D | util.h | 25 const uint8_t* ptr_; member in class:optee::UuidView
|
/fuchsia/zircon/kernel/lib/user_copy/include/lib/user_copy/ |
H A D | user_ptr.h | 30 explicit user_ptr(T* p) : ptr_(p) {} 32 user_ptr(const user_ptr& other) : ptr_(other.ptr_) {} 35 ptr_ = other.ptr_; 39 T* get() const { return ptr_; } 42 user_ptr<C, Policy> reinterpret() const { return user_ptr<C, Policy>(reinterpret_cast<C*>(ptr_)); } 45 explicit operator bool() const { return ptr_ != nullptr; } 51 return ptr_ ? user_ptr(ptr_ 122 T* ptr_; member in class:internal::user_ptr [all...] |
/fuchsia/zircon/kernel/lib/fbl/include/fbl/ |
H A D | inline_array.h | 33 ptr_(!count_ ? nullptr 40 new (&ptr_[i]) T(); 47 ptr_[i].~T(); 49 delete[] ptr_; 60 T* get() const { return ptr_; } 64 return ptr_[i]; 71 T* const ptr_;
|
/fuchsia/zircon/system/ulib/ddktl/include/ddktl/ |
H A D | mmio.h | 31 : mmio_(mmio), ptr_(reinterpret_cast<uintptr_t>(mmio.vaddr)) { 107 ZX_DEBUG_ASSERT(ptr_); 108 return *reinterpret_cast<volatile T*>(ptr_ + offs); 119 ZX_DEBUG_ASSERT(ptr_); 120 *reinterpret_cast<volatile T*>(ptr_ + offs) = val; 143 ptr_ = other.ptr_; 148 uintptr_t ptr_; member in class:ddk::MmioBuffer
|
/fuchsia/zircon/system/ulib/fs/ |
H A D | vnode.cpp | 138 : ptr_(static_cast<char*>(ptr)), pos_(0), len_(len) {} 141 vdirent_t* de = reinterpret_cast<vdirent_t*>(ptr_ + pos_);
|
/fuchsia/zircon/system/ulib/trace-engine/ |
H A D | context_api.cpp | 272 : ptr_(context->AllocRecord(num_bytes)) {} 275 : ptr_(rqst_durable && context->UsingDurableBuffer() 280 return ptr_ != nullptr; 284 *ptr_++ = value; 289 *reinterpret_cast<int64_t*>(ptr_++) = value; 294 *reinterpret_cast<double*>(ptr_++) = value; 299 auto result = ptr_; 300 ptr_ += length / 8u; 304 ptr_++; 305 memset(reinterpret_cast<uint8_t*>(ptr_) 399 uint64_t* ptr_; member in class:trace::__anon1227::Payload [all...] |
/fuchsia/zircon/system/ulib/fs/include/fs/ |
H A D | vnode.h | 249 char* ptr_; member in class:fs::DirentFiller
|
/fuchsia/zircon/system/host/zbi/ |
H A D | zbi.cpp | 60 buffer_(std::make_unique<std::byte[]>(size)), ptr_(buffer_.get()) { 64 return ptr_ - buffer_.get(); 72 ptr_ = nullptr; 78 ptr_ = static_cast<std::byte*>(memcpy(static_cast<void*>(ptr_), 84 ptr_ = static_cast<std::byte*>(memset(static_cast<void*>(ptr_), 0, 90 std::byte* ptr_ = nullptr; member in class:__anon583::AppendBuffer
|
/fuchsia/zircon/kernel/syscalls/ |
H A D | object.cpp | 47 : jobs_(jobs), ptr_(ptr), max_(max) {} 71 if (ptr_.copy_array_to_user(&koid, 1, count_) != ZX_OK) { 80 const user_out_ptr<zx_koid_t> ptr_; member in class:__anon107::final
|