Home
last modified time | relevance | path

Searched refs:slice_ref (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/bytes/tests/
Dtest_bytes.rs932 let sub = bytes.slice_ref(slice); in test_slice_ref()
952 let sub = bytes.slice_ref(slice); in slice_ref_empty()
963 assert_eq!(Bytes::new(), bytes.slice_ref(slice)); in slice_ref_empty_subslice()
972 bytes.slice_ref(slice); in slice_ref_catches_not_a_subset()
980 assert_eq!(Bytes::new(), bytes.slice_ref(slice)); in slice_ref_not_an_empty_subset()
988 assert_eq!(Bytes::new(), bytes.slice_ref(slice)); in empty_slice_ref_not_an_empty_subset()
/external/rust/crates/bytes/
DCHANGELOG.md144 - Fix panic in `Bytes::slice_ref` if argument is an empty slice.
213 * Add `Bytes::slice_ref` (#208).
/external/perfetto/src/trace_processor/importers/proto/
Dtrack_event_parser.cc759 tables::SliceTable::RowReference slice_ref = *opt_thread_slice_ref; in ParseThreadEndEvent() local
760 std::optional<int64_t> tts = slice_ref.thread_ts(); in ParseThreadEndEvent()
763 slice_ref.set_thread_dur(*thread_timestamp_ - *tts); in ParseThreadEndEvent()
765 std::optional<int64_t> tic = slice_ref.thread_instruction_count(); in ParseThreadEndEvent()
768 slice_ref.set_thread_instruction_delta( in ParseThreadEndEvent()
/external/eigen/unsupported/test/
Dcxx11_tensor_morphing.cpp147 TensorRef<Tensor<const T, 1> > slice_ref(m.slice(offsets, m.dimensions())); in test_const_slice() local
148 VERIFY_IS_EQUAL(slice_ref(0), 42); in test_const_slice()
/external/rust/crates/bytes/src/
Dbytes.rs305 pub fn slice_ref(&self, subset: &[u8]) -> Self { in slice_ref() method