Lines Matching refs:Octets
125 pub struct Octets<'a> { struct
130 impl<'a> Octets<'a> { implementation
136 Octets { buf, off: 0 } in with_slice()
206 pub fn get_bytes(&mut self, len: usize) -> Result<Octets> { in get_bytes() argument
211 let out = Octets { in get_bytes()
223 pub fn get_bytes_with_u8_length(&mut self) -> Result<Octets> { in get_bytes_with_u8_length() argument
231 pub fn get_bytes_with_u16_length(&mut self) -> Result<Octets> { in get_bytes_with_u16_length() argument
239 pub fn get_bytes_with_varint_length(&mut self) -> Result<Octets> { in get_bytes_with_varint_length() argument
246 pub fn peek_bytes(&self, len: usize) -> Result<Octets> { in peek_bytes() argument
251 let out = Octets { in peek_bytes()
304 impl<'a> AsRef<[u8]> for Octets<'a> { implementation
467 pub fn get_bytes(&mut self, len: usize) -> Result<Octets> { in get_bytes() argument
472 let out = Octets { in get_bytes()
501 pub fn get_bytes_with_u8_length(&mut self) -> Result<Octets> { in get_bytes_with_u8_length() argument
509 pub fn get_bytes_with_u16_length(&mut self) -> Result<Octets> { in get_bytes_with_u16_length() argument
517 pub fn get_bytes_with_varint_length(&mut self) -> Result<Octets> { in get_bytes_with_varint_length() argument
524 pub fn peek_bytes(&mut self, len: usize) -> Result<Octets> { in peek_bytes() argument
529 let out = Octets { in peek_bytes()
681 let mut b = Octets::with_slice(&d); in get_u()
753 let mut b = Octets::with_slice(&d); in peek_u()
794 let mut b = Octets::with_slice(&d); in get_bytes()
846 let mut b = Octets::with_slice(&d); in peek_bytes()
882 let mut b = Octets::with_slice(&d); in get_varint()
888 let mut b = Octets::with_slice(&d); in get_varint()
894 let mut b = Octets::with_slice(&d); in get_varint()
900 let mut b = Octets::with_slice(&d); in get_varint()
906 let mut b = Octets::with_slice(&d); in get_varint()
1139 let b = Octets::with_slice(&d); in slice()
1145 let b = Octets::with_slice(&d); in slice()
1151 let mut b = Octets::with_slice(&d); in slice()
1159 let b = Octets::with_slice(&d); in slice()
1199 let b = Octets::with_slice(&d); in slice_last()
1205 let b = Octets::with_slice(&d); in slice_last()
1211 let b = Octets::with_slice(&d); in slice_last()
1217 let b = Octets::with_slice(&d); in slice_last()
1223 let b = Octets::with_slice(&d); in slice_last()