Home
last modified time | relevance | path

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

1234

/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/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/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()
Dcpdf_seekablemultistream.cpp50 memcpy(buffer, acc->GetSpan().subspan(offset, dwRead).data(), dwRead); in ReadBlockAtOffset()
/external/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()
Ds3_both.cc200 Span<const uint8_t> chunk = rest.subspan(0, ssl->max_send_fragment); in ssl3_add_message()
201 rest = rest.subspan(chunk.size()); in ssl3_add_message()
219 rest.subspan(0, ssl->max_send_fragment - pending_len); in ssl3_add_message()
221 rest = rest.subspan(chunk.size()); in ssl3_add_message()
373 CBS v2_client_hello = CBS(ssl->s3->read_buffer.span().subspan(2, msg_length)); in read_v2_client_hello()
Dssl_aead_ctx.cc288 in = in.subspan(variable_nonce_len_); in Open()
310 *out = in.subspan(0, len); in Open()
/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/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()
Dcfx_readonlymemorystream.cpp39 auto copy_span = m_span.subspan(offset, size); in ReadBlockAtOffset()
/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/pdfium/xfa/fxfa/fm2js/
Dcxfa_fmlexer.cpp317 WideStringView(m_spInput.subspan(m_nCursor, end - m_nCursor)); in AdvanceForNumber()
336 WideStringView(m_spInput.subspan(start, m_nCursor - start)); in AdvanceForString()
346 WideStringView(m_spInput.subspan(start, m_nCursor - start)); in AdvanceForString()
373 WideStringView(m_spInput.subspan(start, m_nCursor - start)); in AdvanceForIdentifier()
/external/skia/tests/
DSkScalerCacheTest.cpp49 auto data = SkMakeZip(glyphs, pos).subspan(SkTo<int>(' '), glyphCount); in DEF_TEST()
67 auto local = data.subspan(threadIndex * 2, data.size() - kThreadCount * 2); in DEF_TEST()
/external/boringssl/src/crypto/rand_extra/
Drand_test.cc89 out = out.subspan(static_cast<size_t>(ret)); in ForkAndRand()
110 out = out.subspan(static_cast<size_t>(ret)); in ForkAndRand()
/external/pdfium/core/fxge/win32/
Dcpsoutput.cpp35 input = input.subspan(send_len); in WriteBlock()
/external/libchrome/mojo/public/cpp/bindings/
Darray_traits_span.h40 input = input.subspan(0, size);
/external/tensorflow/tensorflow/compiler/xla/service/
Dcholesky_expander.cc65 .subspan( in CholeskyUnblocked()
70 .subspan( in CholeskyUnblocked()
/external/pdfium/core/fxcrt/xml/
Dcfx_xmlparser.cpp342 pdfium::make_span(buffer).subspan(current_buffer_idx); in DoSyntaxParse()
358 pdfium::make_span(buffer).subspan(current_buffer_idx); in DoSyntaxParse()
421 pdfium::make_span(buffer).subspan(current_buffer_idx); in DoSyntaxParse()
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamparser.cpp175 auto copy_span = m_pBuf.subspan(m_Pos, dwOrigSize); in ReadInlineStream()
180 dwStreamSize = DecodeInlineStream(m_pBuf.subspan(m_Pos), width, height, in ReadInlineStream()
205 auto copy_span = m_pBuf.subspan(m_Pos, dwStreamSize); in ReadInlineStream()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dvariadic_op_splitter.cc69 new_shape, operands_span.subspan(offset, kMaxParameters))); in SplitConcatenate()
/external/tensorflow/tensorflow/core/kernels/
Dset_kernels.cc272 VarDimArray group_ix = set_st.order().subspan(0, set_st.order().size() - 1); in Compute()
504 set2_st.group(set2_st.order().subspan(0, set2_st.order().size() - 1)); in ComputeDenseToSparse()
625 set1_st.group(set1_st.order().subspan(0, set1_st.order().size() - 1)); in ComputeSparseToSparse()
628 set2_st.group(set2_st.order().subspan(0, set2_st.order().size() - 1)); in ComputeSparseToSparse()
/external/tensorflow/tensorflow/compiler/jit/
Dbuild_xla_ops_pass.cc248 absl::c_transform(input_edges.subspan(0, num_constant_inputs), in GetXlaClusterInfo()
253 input_edges.subspan(num_constant_inputs, num_non_constant_inputs), in GetXlaClusterInfo()
257 input_edges.subspan(num_constant_inputs + num_non_constant_inputs, in GetXlaClusterInfo()
/external/pdfium/xfa/fxfa/
Dcxfa_textparser.cpp575 wsAlign = WideStringView(spTabStops.subspan(iLast, iCur - iLast)); in GetTabstops()
612 WideStringView(spTabStops.subspan(iLast, iCur - iLast))); in GetTabstops()
628 WideStringView(spTabStops.subspan(iLast, iCur - iLast))); in GetTabstops()

1234