Home
last modified time | relevance | path

Searched refs:safe_allocation (Results 1 – 8 of 8) sorted by relevance

/xnu-8796.141.3/iokit/DriverKit/
H A Dsafe_allocation.h154 struct safe_allocation {
167 explicit constexpr safe_allocation() noexcept : data_(nullptr), size_(0)
171 constexpr safe_allocation(sa_detail::nullptr_t) noexcept : safe_allocation()
191 explicit safe_allocation(T* data, size_t n, adopt_memory_t) : data_(data)
209 explicit safe_allocation(size_t n, allocate_memory_t)
225 explicit safe_allocation(size_t n, allocate_memory_zero_t)
242 safe_allocation(safe_allocation const&) = delete;
243 safe_allocation& operator=(safe_allocation const&) = delete;
254 safe_allocation(safe_allocation&& other) noexcept : data_(other.data_), size_(other.size_)
264 safe_allocation&
[all …]
H A DMakefile47 safe_allocation.h
/xnu-8796.141.3/libkern/libkern/c++/
H A Dsafe_allocation.h154 struct safe_allocation {
167 explicit constexpr safe_allocation() noexcept : data_(nullptr), size_(0)
171 constexpr safe_allocation(sa_detail::nullptr_t) noexcept : safe_allocation()
191 explicit safe_allocation(T* data, size_t n, adopt_memory_t) : data_(data)
209 explicit safe_allocation(size_t n, allocate_memory_t)
225 explicit safe_allocation(size_t n, allocate_memory_zero_t)
242 safe_allocation(safe_allocation const&) = delete;
243 safe_allocation& operator=(safe_allocation const&) = delete;
254 safe_allocation(safe_allocation&& other) noexcept : data_(other.data_), size_(other.size_)
264 safe_allocation&
[all …]
H A DMakefile43 safe_allocation.h
H A DOSAllocation.h135 using OSAllocation = libkern::safe_allocation<T, Allocator, os_detail::panic_trapping_policy>;
/xnu-8796.141.3/tests/safe_allocation_src/
H A Dtest_utils.h103 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 Doperator.subscript.cpp51 using Alloc = libkern::safe_allocation<RawT, malloc_allocator, tracking_trapping_policy>; in tests()
/xnu-8796.141.3/tests/
H A DMakefile406 safe_allocation: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRC… target
407 safe_allocation: $(wildcard safe_allocation_src/*.cpp) safe_allocation.cpp target