Lines Matching refs:slice_last
269 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()
1247 assert_eq!(b.slice_last(0), Ok(&mut exp[..])); in slice_last_mut()
1253 assert_eq!(b.slice_last(10), Ok(&mut exp[..])); in slice_last_mut()
1258 assert!(b.slice_last(11).is_err()); in slice_last_mut()