Home
last modified time | relevance | path

Searched refs:span (Results 1 – 6 of 6) sorted by relevance

/xnu-12377.61.12/tests/cxx_safe_buffers_src/
H A Dunsafe_forge_span.cpp23 std::span<T> span = os::span::__unsafe_forge_span(p, 10); in tests() local
25 CHECK(span.data() == p && span.size() == 10); in tests()
30 std::span<const T> span = os::span::__unsafe_forge_span(p, 10); in tests() local
32 CHECK(span.data() == p && span.size() == 10); in tests()
37 std::span<T> span = os::span::__unsafe_forge_span(v.begin(), v.end()); in tests() local
39 CHECK(span.data() == v.data() && span.size() == 0); in tests()
43 std::span<T> span = os::unsafe_forge_span(p, 10); in tests() local
44 std::span<T, 10> span2 = os::unsafe_forge_span<T, 10>(p); in tests()
46 CHECK(span.data() == p && span.size() == 10); in tests()
52 std::span<T> span = os::unsafe_forge_span(v.begin(), v.end()); in tests() local
[all …]
H A Dreinterpret_span_cast.cpp52 std::span<int> sp{a1}; // static-extent std::span in tests()
53 std::span<std::byte> writable_sp = os::reinterpret_span_cast<std::byte>(sp); in tests()
54 std::span<const std::byte> nonwritable_sp = os::reinterpret_span_cast<const std::byte>(sp); in tests()
62 std::span<std::byte> sp{vec}; // dynamic-extent std::span in tests()
63 std::span<A> span_a = os::reinterpret_span_cast<A>(sp); in tests()
70 std::span<A> span_a = arr; in tests()
71 std::span<B> span_b = os::reinterpret_span_cast<B>(span_a); in tests()
78 std::span<B> span_b = array; in tests()
79 std::span<C> span_c = os::reinterpret_span_cast<C>(span_b); in tests()
86 std::span<C> span_c = array; in tests()
[all …]
/xnu-12377.61.12/libkern/os/
H A Dcxx_safe_buffers.h36 #if (defined(__has_include) && __has_include(<span>) && __has_include(<iterator>) && __has_include(…
56 std::span<std::remove_reference_t<std::iter_reference_t<It> > >
57 unsafe_forge_span(It data, typename std::span<std::remove_reference_t<std::iter_reference_t<It> > >… in unsafe_forge_span()
59 return std::span<std::remove_reference_t<std::iter_reference_t<It> > >{data, size}; in unsafe_forge_span()
63 std::span<std::remove_reference_t<std::iter_reference_t<It> > >
66 return std::span<std::remove_reference_t<std::iter_reference_t<It> > >{begin, end}; in unsafe_forge_span()
70 std::span<T, N>
73 return std::span<T, N>{data, N}; in unsafe_forge_span()
84 std::span<Dst, Count == std::dynamic_extent
87 reinterpret_span_cast( std::span<Src, Count> src ) in reinterpret_span_cast()
[all …]
/xnu-12377.61.12/tools/kt-dump/
H A Dkt-dump.cpp105 std::span<const T> contents;
107 macho_section(const section_64 &sec, std::span<uint8_t> data) in macho_section()
174 const std::span<uint8_t> slice_contents;
342 image(std::span<uint8_t> contents, size_t mh_offs = 0) in image()
346 std::span<uint8_t> commands = contents.subspan(mh_offs + sizeof(*hdr));
366 const std::span<section_64> sections((section_64 *)(seg_cmd + 1), seg_cmd->nsects);
483 do_simple_macho(const std::string filename, std::span<uint8_t> contents) in do_simple_macho()
491 do_fat_macho(const std::string filename, std::span<uint8_t> contents) in do_fat_macho()
494 std::span<fat_arch> fat_archs( in do_fat_macho()
523 do_fileset(std::span<uint8_t> contents) in do_fileset()
[all …]
/xnu-12377.61.12/tools/lldbmacros/
H A Dnet.py2091 span = rxseg.rx_end - rxseg.rx_start
2093 …_format.format(cnt, rxseg, rxseg.rx_start, rxseg.rx_end, rxseg.rx_count, rxseg.rx_flags, abs(span))
/xnu-12377.61.12/doc/arm/
H A Dapple_speculative_hardening.md463 forms and can often span function boundaries, which even LTO cannot adequately