Searched refs:slice_last (Results 1 – 2 of 2) sorted by relevance
269 pub fn slice_last(&'a self, len: usize) -> Result<&'a [u8]> { in slice_last() method597 pub fn slice_last(&'a mut self, len: usize) -> Result<&'a mut [u8]> { in slice_last() method1195 fn slice_last() { in slice_last() function1201 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 …]
537 let pn_buf = rest.slice_last(pn_len)?; in encrypt_hdr()