Lines Matching refs:OctetsMut
191 let mut b = OctetsMut::with_slice(&mut vec); in get_varint()
314 pub struct OctetsMut<'a> { struct
319 impl<'a> OctetsMut<'a> { implementation
325 OctetsMut { buf, off: 0 } in with_slice()
410 let mut b = OctetsMut::with_slice(&mut vec); in get_varint()
484 pub fn get_bytes_mut(&mut self, len: usize) -> Result<OctetsMut> { in get_bytes_mut() argument
489 let out = OctetsMut { in get_bytes_mut()
539 pub fn peek_bytes_mut(&mut self, len: usize) -> Result<OctetsMut> { in peek_bytes_mut() argument
544 let out = OctetsMut { in peek_bytes_mut()
573 pub fn split_at(&mut self, off: usize) -> Result<(OctetsMut, OctetsMut)> { in split_at() argument
580 let first = OctetsMut { buf: left, off: 0 }; in split_at()
582 let last = OctetsMut { buf: right, off: 0 }; in split_at()
632 impl<'a> AsRef<[u8]> for OctetsMut<'a> { implementation
638 impl<'a> AsMut<[u8]> for OctetsMut<'a> { implementation
718 let mut b = OctetsMut::with_slice(&mut d); in get_u_mut()
774 let mut b = OctetsMut::with_slice(&mut d); in peek_u_mut()
820 let mut b = OctetsMut::with_slice(&mut d); in get_bytes_mut()
864 let mut b = OctetsMut::with_slice(&mut d); in peek_bytes_mut()
915 let mut b = OctetsMut::with_slice(&mut d); in get_varint_mut()
921 let mut b = OctetsMut::with_slice(&mut d); in get_varint_mut()
927 let mut b = OctetsMut::with_slice(&mut d); in get_varint_mut()
933 let mut b = OctetsMut::with_slice(&mut d); in get_varint_mut()
939 let mut b = OctetsMut::with_slice(&mut d); in get_varint_mut()
949 let mut b = OctetsMut::with_slice(&mut d); in put_varint()
959 let mut b = OctetsMut::with_slice(&mut d); in put_varint()
969 let mut b = OctetsMut::with_slice(&mut d); in put_varint()
979 let mut b = OctetsMut::with_slice(&mut d); in put_varint()
989 let mut b = OctetsMut::with_slice(&mut d); in put_varint()
1002 let mut b = OctetsMut::with_slice(&mut d); in varint_too_large()
1011 let mut b = OctetsMut::with_slice(&mut d); in put_u()
1049 let mut b = OctetsMut::with_slice(&mut d); in put_bytes()
1069 let mut b = OctetsMut::with_slice(&mut d); in split()
1096 let mut b = OctetsMut::with_slice(&mut d); in split_at()
1107 let mut b = OctetsMut::with_slice(&mut d); in split_at()
1118 let mut b = OctetsMut::with_slice(&mut d); in split_at()
1129 let mut b = OctetsMut::with_slice(&mut d); in split_at()
1169 let mut b = OctetsMut::with_slice(&mut d); in slice_mut()
1175 let mut b = OctetsMut::with_slice(&mut d); in slice_mut()
1181 let mut b = OctetsMut::with_slice(&mut d); in slice_mut()
1189 let mut b = OctetsMut::with_slice(&mut d); in slice_mut()
1233 let mut b = OctetsMut::with_slice(&mut d); in slice_last_mut()
1239 let mut b = OctetsMut::with_slice(&mut d); in slice_last_mut()
1245 let mut b = OctetsMut::with_slice(&mut d); in slice_last_mut()
1251 let mut b = OctetsMut::with_slice(&mut d); in slice_last_mut()
1257 let mut b = OctetsMut::with_slice(&mut d); in slice_last_mut()