Searched refs:safe_allocation (Results 1 – 8 of 8) sorted by relevance
| /xnu-11417.121.6/libkern/libkern/c++/ |
| H A D | safe_allocation.h | 158 struct safe_allocation { 171 explicit constexpr safe_allocation() noexcept : data_(nullptr), size_(0) 175 constexpr safe_allocation(sa_detail::nullptr_t) noexcept : safe_allocation() 195 explicit safe_allocation(T* data, size_t n, adopt_memory_t) : data_(data) 213 explicit safe_allocation(size_t n, allocate_memory_t) 229 explicit safe_allocation(size_t n, allocate_memory_zero_t) 246 safe_allocation(safe_allocation const&) = delete; 247 safe_allocation& operator=(safe_allocation const&) = delete; 258 safe_allocation(safe_allocation&& other) noexcept : data_(other.data_), size_(other.size_) 268 safe_allocation& [all …]
|
| H A D | Makefile | 43 safe_allocation.h
|
| H A D | OSAllocation.h | 135 using OSAllocation = libkern::safe_allocation<T, Allocator, os_detail::panic_trapping_policy>;
|
| /xnu-11417.121.6/iokit/DriverKit/ |
| H A D | safe_allocation.h | 158 struct safe_allocation { 171 explicit constexpr safe_allocation() noexcept : data_(nullptr), size_(0) 175 constexpr safe_allocation(sa_detail::nullptr_t) noexcept : safe_allocation() 195 explicit safe_allocation(T* data, size_t n, adopt_memory_t) : data_(data) 213 explicit safe_allocation(size_t n, allocate_memory_t) 229 explicit safe_allocation(size_t n, allocate_memory_zero_t) 246 safe_allocation(safe_allocation const&) = delete; 247 safe_allocation& operator=(safe_allocation const&) = delete; 258 safe_allocation(safe_allocation&& other) noexcept : data_(other.data_), size_(other.size_) 268 safe_allocation& [all …]
|
| H A D | Makefile | 47 safe_allocation.h
|
| /xnu-11417.121.6/tests/safe_allocation_src/ |
| H A D | test_utils.h | 103 using test_safe_allocation = libkern::safe_allocation<T, malloc_allocator, assert_trapping_policy>; 106 using tracked_safe_allocation = libkern::safe_allocation<T, tracking_allocator, assert_trapping_pol…
|
| H A D | operator.subscript.cpp | 51 using Alloc = libkern::safe_allocation<RawT, malloc_allocator, tracking_trapping_policy>; in tests()
|
| /xnu-11417.121.6/tests/ |
| H A D | Makefile | 678 safe_allocation: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRC… target 679 safe_allocation: $(wildcard safe_allocation_src/*.cpp) safe_allocation.cpp target
|