Home
last modified time | relevance | path

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

/xnu-11215/libkern/libkern/c++/
H A Dsafe_allocation.h158 struct safe_allocation {
175 constexpr safe_allocation(sa_detail::nullptr_t) noexcept : safe_allocation()
213 explicit safe_allocation(size_t n, allocate_memory_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&
291 safe_allocation&
292 operator=(safe_allocation&& other)
317 ~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-11215/iokit/DriverKit/
H A Dsafe_allocation.h158 struct safe_allocation {
175 constexpr safe_allocation(sa_detail::nullptr_t) noexcept : safe_allocation()
213 explicit safe_allocation(size_t n, allocate_memory_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&
291 safe_allocation&
292 operator=(safe_allocation&& other)
317 ~safe_allocation()
[all …]
H A DMakefile47 safe_allocation.h
/xnu-11215/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-11215/tests/
H A DMakefile672 safe_allocation: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRC… target
673 safe_allocation: $(wildcard safe_allocation_src/*.cpp) safe_allocation.cpp target