Home
last modified time | relevance | path

Searched refs:subspan (Results 1 – 25 of 171) sorted by relevance

1234567

/external/libchrome/base/containers/
Dspan_unittest.cc287 constexpr auto subspan = span.first<0>(); in TEST() local
288 static_assert(span.data() == subspan.data(), ""); in TEST()
289 static_assert(0u == subspan.size(), ""); in TEST()
290 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
294 constexpr auto subspan = span.first<1>(); in TEST() local
295 static_assert(span.data() == subspan.data(), ""); in TEST()
296 static_assert(1u == subspan.size(), ""); in TEST()
297 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
298 static_assert(1 == subspan[0], ""); in TEST()
302 constexpr auto subspan = span.first<2>(); in TEST() local
[all …]
Dspan_unittest.nc133 // Static subspan called on a span with static extent must not exceed the size.
137 auto subspan = span.subspan<4>();
142 // Static subspan called on a span with static extent must not exceed the size.
146 auto subspan = span.subspan<0, 4>();
/external/pigweed/pw_span/
Dspan_test.cc576 constexpr auto subspan = span.first<0>(); in TEST() local
577 static_assert(span.data() == subspan.data(), ""); in TEST()
578 static_assert(subspan.empty(), ""); in TEST()
579 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
583 constexpr auto subspan = span.first<1>(); in TEST() local
584 static_assert(span.data() == subspan.data(), ""); in TEST()
585 static_assert(1u == subspan.size(), ""); in TEST()
586 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
587 static_assert(1 == subspan[0], ""); in TEST()
591 constexpr auto subspan = span.first<2>(); in TEST() local
[all …]
/external/llvm-project/parallel-libs/acxxel/tests/
Dspan_test.cpp184 acxxel::Span<int> Span0 = Span.subspan(0); in TEST()
185 acxxel::Span<int> Span0e = Span.subspan(0, acxxel::dynamic_extent); in TEST()
186 acxxel::Span<int> Span00 = Span.subspan(0, 0); in TEST()
187 acxxel::Span<int> Span01 = Span.subspan(0, 1); in TEST()
188 acxxel::Span<int> Span02 = Span.subspan(0, 2); in TEST()
189 acxxel::Span<int> Span03 = Span.subspan(0, 3); in TEST()
191 acxxel::Span<int> Span1 = Span.subspan(1); in TEST()
192 acxxel::Span<int> Span1e = Span.subspan(1, acxxel::dynamic_extent); in TEST()
193 acxxel::Span<int> Span10 = Span.subspan(1, 0); in TEST()
194 acxxel::Span<int> Span11 = Span.subspan(1, 1); in TEST()
[all …]
/external/llvm-project/libcxx/test/std/containers/views/span.sub/
Dsubspan.pass.cpp32 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset, Count>()))); in testConstexprSpan()
33 LIBCPP_ASSERT((noexcept(sp.subspan(Offset, Count)))); in testConstexprSpan()
34 auto s1 = sp.template subspan<Offset, Count>(); in testConstexprSpan()
35 auto s2 = sp.subspan(Offset, Count); in testConstexprSpan()
51 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset>()))); in testConstexprSpan()
52 LIBCPP_ASSERT((noexcept(sp.subspan(Offset)))); in testConstexprSpan()
53 auto s1 = sp.template subspan<Offset>(); in testConstexprSpan()
54 auto s2 = sp.subspan(Offset); in testConstexprSpan()
71 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset, Count>()))); in testRuntimeSpan()
72 LIBCPP_ASSERT((noexcept(sp.subspan(Offset, Count)))); in testRuntimeSpan()
[all …]
Dsubspan.fail.cpp33 …[[maybe_unused]] auto s1 = sp.subspan<5>(); // expected-error-re@span:* {{static_assert failed{{( … in main()
38 …[[maybe_unused]] auto s1 = sp.subspan<0, 5>(); // expected-error-re@span:* {{static_assert failed{… in main()
43 …[[maybe_unused]] auto s1 = sp.subspan<2, 3>(); // expected-error-re@span:* {{static_assert failed{… in main()
48 …[[maybe_unused]] auto s1 = sp.subspan<3, std::size_t(-2)>(); // expected-error-re@span:* {{static_… in main()
/external/libcxx/test/std/containers/views/span.sub/
Dsubspan.pass.cpp33 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset, Count>()))); in testConstexprSpan()
34 LIBCPP_ASSERT((noexcept(sp.subspan(Offset, Count)))); in testConstexprSpan()
35 auto s1 = sp.template subspan<Offset, Count>(); in testConstexprSpan()
36 auto s2 = sp.subspan(Offset, Count); in testConstexprSpan()
52 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset>()))); in testConstexprSpan()
53 LIBCPP_ASSERT((noexcept(sp.subspan(Offset)))); in testConstexprSpan()
54 auto s1 = sp.template subspan<Offset>(); in testConstexprSpan()
55 auto s2 = sp.subspan(Offset); in testConstexprSpan()
72 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset, Count>()))); in testRuntimeSpan()
73 LIBCPP_ASSERT((noexcept(sp.subspan(Offset, Count)))); in testRuntimeSpan()
[all …]
/external/pigweed/pw_kvs/
Dchecksum_test.cc124 checksum.Update(kBytes.subspan(0, 1)); in TEST()
125 checksum.Update(kBytes.subspan(1, 9)); in TEST()
128 checksum.Update(kBytes.subspan(10, 11)); in TEST()
131 checksum.Update(kBytes.subspan(21, 11)); in TEST()
134 checksum.Update(kBytes.subspan(32, 66)); in TEST()
137 checksum.Update(kBytes.subspan(98, 0)); in TEST()
140 checksum.Update(kBytes.subspan(98, 2)); in TEST()
Dalignment_test.cc144 EXPECT_EQ(OkStatus(), writer.Write(kBytes.subspan(0, 1)).status()); in TEST()
145 EXPECT_EQ(OkStatus(), writer.Write(kBytes.subspan(1, 9)).status()); in TEST()
148 EXPECT_EQ(OkStatus(), writer.Write(kBytes.subspan(10, 11)).status()); in TEST()
151 EXPECT_EQ(OkStatus(), writer.Write(kBytes.subspan(21, 11)).status()); in TEST()
154 EXPECT_EQ(OkStatus(), writer.Write(kBytes.subspan(32, 66)).status()); in TEST()
157 EXPECT_EQ(OkStatus(), writer.Write(kBytes.subspan(98, 0)).status()); in TEST()
160 EXPECT_EQ(OkStatus(), writer.Write(kBytes.subspan(98, 2)).status()); in TEST()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_simple_parser.cpp60 return data_.subspan(start_pos, dwSize); in GetWord()
66 return data_.subspan(start_pos, dwSize); in GetWord()
82 return data_.subspan(start_pos, dwSize); in GetWord()
116 return data_.subspan(start_pos, dwSize); in GetWord()
129 return data_.subspan(start_pos, dwSize); in GetWord()
/external/pigweed/pw_protobuf/
Ddecoder.cc46 proto_ = proto_.subspan(bytes_to_skip); in SkipField()
120 std::span<const std::byte> remainder = proto_.subspan(key_size); in FieldSize()
171 proto_ = proto_.subspan(bytes_read); in ConsumeKey()
186 proto_ = proto_.subspan(bytes_read); in ReadVarint()
204 proto_ = proto_.subspan(size); in ReadFixed()
222 proto_ = proto_.subspan(bytes_read); in ReadDelimited()
228 proto_ = proto_.subspan(length); in ReadDelimited()
/external/openscreen/third_party/abseil/src/absl/types/
Dspan_test.cc288 EXPECT_EQ(absl::MakeSpan(empty).subspan(), empty); in TEST()
289 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, 0), SpanIs(empty)); in TEST()
290 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, absl::Span<const int>::npos), in TEST()
294 EXPECT_THAT(absl::MakeSpan(ramp).subspan(), SpanIs(ramp)); in TEST()
295 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 10), SpanIs(ramp)); in TEST()
296 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, absl::Span<const int>::npos), in TEST()
298 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 3), SpanIs(ramp.data(), 3)); in TEST()
299 EXPECT_THAT(absl::MakeSpan(ramp).subspan(5, absl::Span<const int>::npos), in TEST()
301 EXPECT_THAT(absl::MakeSpan(ramp).subspan(3, 3), SpanIs(ramp.data() + 3, 3)); in TEST()
302 EXPECT_THAT(absl::MakeSpan(ramp).subspan(10, 5), SpanIs(ramp.data() + 10, 0)); in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/types/
Dspan_test.cc275 EXPECT_EQ(absl::MakeSpan(empty).subspan(), empty); in TEST()
276 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, 0), SpanIs(empty)); in TEST()
277 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, absl::Span<const int>::npos), in TEST()
281 EXPECT_THAT(absl::MakeSpan(ramp).subspan(), SpanIs(ramp)); in TEST()
282 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 10), SpanIs(ramp)); in TEST()
283 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, absl::Span<const int>::npos), in TEST()
285 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 3), SpanIs(ramp.data(), 3)); in TEST()
286 EXPECT_THAT(absl::MakeSpan(ramp).subspan(5, absl::Span<const int>::npos), in TEST()
288 EXPECT_THAT(absl::MakeSpan(ramp).subspan(3, 3), SpanIs(ramp.data() + 3, 3)); in TEST()
289 EXPECT_THAT(absl::MakeSpan(ramp).subspan(10, 5), SpanIs(ramp.data() + 10, 0)); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/types/
Dspan_test.cc288 EXPECT_EQ(absl::MakeSpan(empty).subspan(), empty); in TEST()
289 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, 0), SpanIs(empty)); in TEST()
290 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, absl::Span<const int>::npos), in TEST()
294 EXPECT_THAT(absl::MakeSpan(ramp).subspan(), SpanIs(ramp)); in TEST()
295 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 10), SpanIs(ramp)); in TEST()
296 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, absl::Span<const int>::npos), in TEST()
298 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 3), SpanIs(ramp.data(), 3)); in TEST()
299 EXPECT_THAT(absl::MakeSpan(ramp).subspan(5, absl::Span<const int>::npos), in TEST()
301 EXPECT_THAT(absl::MakeSpan(ramp).subspan(3, 3), SpanIs(ramp.data() + 3, 3)); in TEST()
302 EXPECT_THAT(absl::MakeSpan(ramp).subspan(10, 5), SpanIs(ramp.data() + 10, 0)); in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/
Dspan_test.cc288 EXPECT_EQ(absl::MakeSpan(empty).subspan(), empty); in TEST()
289 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, 0), SpanIs(empty)); in TEST()
290 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, absl::Span<const int>::npos), in TEST()
294 EXPECT_THAT(absl::MakeSpan(ramp).subspan(), SpanIs(ramp)); in TEST()
295 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 10), SpanIs(ramp)); in TEST()
296 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, absl::Span<const int>::npos), in TEST()
298 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 3), SpanIs(ramp.data(), 3)); in TEST()
299 EXPECT_THAT(absl::MakeSpan(ramp).subspan(5, absl::Span<const int>::npos), in TEST()
301 EXPECT_THAT(absl::MakeSpan(ramp).subspan(3, 3), SpanIs(ramp.data() + 3, 3)); in TEST()
302 EXPECT_THAT(absl::MakeSpan(ramp).subspan(10, 5), SpanIs(ramp.data() + 10, 0)); in TEST()
[all …]
/external/abseil-cpp/absl/types/
Dspan_test.cc275 EXPECT_EQ(absl::MakeSpan(empty).subspan(), empty); in TEST()
276 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, 0), SpanIs(empty)); in TEST()
277 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, absl::Span<const int>::npos), in TEST()
281 EXPECT_THAT(absl::MakeSpan(ramp).subspan(), SpanIs(ramp)); in TEST()
282 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 10), SpanIs(ramp)); in TEST()
283 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, absl::Span<const int>::npos), in TEST()
285 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 3), SpanIs(ramp.data(), 3)); in TEST()
286 EXPECT_THAT(absl::MakeSpan(ramp).subspan(5, absl::Span<const int>::npos), in TEST()
288 EXPECT_THAT(absl::MakeSpan(ramp).subspan(3, 3), SpanIs(ramp.data() + 3, 3)); in TEST()
289 EXPECT_THAT(absl::MakeSpan(ramp).subspan(10, 5), SpanIs(ramp.data() + 10, 0)); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/types/
Dspan_test.cc288 EXPECT_EQ(absl::MakeSpan(empty).subspan(), empty); in TEST()
289 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, 0), SpanIs(empty)); in TEST()
290 EXPECT_THAT(absl::MakeSpan(empty).subspan(0, absl::Span<const int>::npos), in TEST()
294 EXPECT_THAT(absl::MakeSpan(ramp).subspan(), SpanIs(ramp)); in TEST()
295 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 10), SpanIs(ramp)); in TEST()
296 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, absl::Span<const int>::npos), in TEST()
298 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 3), SpanIs(ramp.data(), 3)); in TEST()
299 EXPECT_THAT(absl::MakeSpan(ramp).subspan(5, absl::Span<const int>::npos), in TEST()
301 EXPECT_THAT(absl::MakeSpan(ramp).subspan(3, 3), SpanIs(ramp.data() + 3, 3)); in TEST()
302 EXPECT_THAT(absl::MakeSpan(ramp).subspan(10, 5), SpanIs(ramp.data() + 10, 0)); in TEST()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Dt1_enc.cc215 mac_secret = key_block.subspan(0, mac_secret_len); in tls1_configure_aead()
216 key = key_block.subspan(2 * mac_secret_len, key_len); in tls1_configure_aead()
217 iv = key_block.subspan(2 * mac_secret_len + 2 * key_len, iv_len); in tls1_configure_aead()
220 mac_secret = key_block.subspan(mac_secret_len, mac_secret_len); in tls1_configure_aead()
221 key = key_block.subspan(2 * mac_secret_len + key_len, key_len); in tls1_configure_aead()
222 iv = key_block.subspan(2 * mac_secret_len + 2 * key_len + iv_len, iv_len); in tls1_configure_aead()
/external/angle/src/compiler/translator/
Dspan_unittest.cpp177 constexpr Span subspan = sp.subspan(kSplitOffset, kSplitSize); in TEST() local
179 ASSERT_EQ(subspan, Span(kSpanData + kSplitOffset, kSplitSize)); in TEST()
180 ASSERT_EQ(subspan.data(), kSpanData + kSplitOffset); in TEST()
181 ASSERT_EQ(subspan.size(), kSplitSize); in TEST()
/external/boringssl/src/ssl/
Dt1_enc.cc229 mac_secret = key_block.subspan(0, mac_secret_len); in tls1_configure_aead()
230 key = key_block.subspan(2 * mac_secret_len, key_len); in tls1_configure_aead()
231 iv = key_block.subspan(2 * mac_secret_len + 2 * key_len, iv_len); in tls1_configure_aead()
234 mac_secret = key_block.subspan(mac_secret_len, mac_secret_len); in tls1_configure_aead()
235 key = key_block.subspan(2 * mac_secret_len + key_len, key_len); in tls1_configure_aead()
236 iv = key_block.subspan(2 * mac_secret_len + 2 * key_len + iv_len, iv_len); in tls1_configure_aead()
/external/pdfium/core/fxge/
Dfx_font.cpp28 string_span = string_span.subspan(offset, length); in GetStringFromTable()
90 pdfium::span<const uint8_t> string_span = name_table.subspan(string_offset); in GetNameFromTT()
91 name_table = name_table.subspan(6); in GetNameFromTT()
96 i++, name_table = name_table.subspan(12)) { in GetNameFromTT()
/external/pdfium/core/fxcrt/
Dpdfium_span_unittest.cpp16 pdfium::span<int> empty_sub_span1 = stuff_span.subspan(0, 0); in TEST()
17 pdfium::span<int> empty_sub_span2 = stuff_span.subspan(3, 0); in TEST()
/external/llvm-project/libcxx/include/
Dspan78 constexpr span<element_type, see below> subspan() const;
82 …constexpr span<element_type, dynamic_extent> subspan(size_type offset, size_type count = dynamic_e…
296 constexpr auto subspan() const noexcept
299 static_assert(_Offset <= _Extent, "Offset out of range in span::subspan()");
300 …= dynamic_extent || _Count <= _Extent - _Offset, "Offset + count out of range in span::subspan()");
309 subspan(size_type __offset, size_type __count = dynamic_extent) const noexcept
311 _LIBCPP_ASSERT(__offset <= size(), "Offset out of range in span::subspan(offset, count)");
312 …unt <= size() || __count == dynamic_extent, "Count out of range in span::subspan(offset, count)");
315 …_LIBCPP_ASSERT(__count <= size() - __offset, "Offset + count out of range in span::subspan(offset,…
458 constexpr span<element_type, _Count> subspan() const noexcept
[all …]
/external/libcxx/include/
Dspan79 constexpr span<element_type, see below> subspan() const;
83 …constexpr span<element_type, dynamic_extent> subspan(index_type offset, index_type count = dynamic…
293 constexpr auto subspan() const noexcept
296 _LIBCPP_ASSERT(_Offset >= 0 && _Offset <= size(), "Offset out of range in span::subspan()");
303 subspan(index_type __offset, index_type __count = dynamic_extent) const noexcept
305 …_LIBCPP_ASSERT( __offset >= 0 && __offset <= size(), "Offset out of range in span::subspan(offset,…
306 …nt <= size()) || __count == dynamic_extent, "Count out of range in span::subspan(offset, count)");
309 …_LIBCPP_ASSERT(__offset + __count <= size(), "count + offset out of range in span::subspan(offset,…
459 constexpr span<_Tp, dynamic_extent> subspan() const noexcept
461 _LIBCPP_ASSERT(_Offset >= 0 && _Offset <= size(), "Offset out of range in span::subspan()");
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/cipher_extra/
Dcipher_test.cc148 in = in.subspan(todo); in DoCipher()
273 input = input.subspan(todo); in TestOperation()
274 output = output.subspan(todo); in TestOperation()
288 input = input.subspan(todo); in TestOperation()
289 output = output.subspan(todo); in TestOperation()
303 input = input.subspan(todo); in TestOperation()
304 output = output.subspan(todo); in TestOperation()

1234567