Home
last modified time | relevance | path

Searched refs:slice_last (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/quiche/src/
Doctets.rs269 pub fn slice_last(&'a self, len: usize) -> Result<&'a [u8]> { in slice_last() method
597 pub fn slice_last(&'a mut self, len: usize) -> Result<&'a mut [u8]> { in slice_last() method
1195 fn slice_last() { in slice_last() function
1201 assert_eq!(b.slice_last(4), Ok(&exp[..])); in slice_last()
1207 assert_eq!(b.slice_last(1), Ok(&exp[..])); in slice_last()
1213 assert_eq!(b.slice_last(0), Ok(&exp[..])); in slice_last()
1219 assert_eq!(b.slice_last(10), Ok(&exp[..])); in slice_last()
1224 assert!(b.slice_last(11).is_err()); in slice_last()
1235 assert_eq!(b.slice_last(4), Ok(&mut exp[..])); in slice_last_mut()
1241 assert_eq!(b.slice_last(1), Ok(&mut exp[..])); in slice_last_mut()
[all …]
Dpacket.rs537 let pn_buf = rest.slice_last(pn_len)?; in encrypt_hdr()