Lines Matching refs:bytes
55 let bytes: [u8; len] = <[u8; len]>::try_from(self.buf[..len].as_ref()).unwrap(); in into_u8() localVariable
57 let res: u8 = u8::from_be_bytes(bytes); in into_u8()
60 let res: u8 = u8::from_le_bytes(bytes); in into_u8()
71 let bytes: [u8; len] = <[u8; len]>::try_from(self.buf[..len].as_ref()).unwrap(); in into_u16() localVariable
73 let res: u16 = u16::from_be_bytes(bytes); in into_u16()
76 let res: u16 = u16::from_le_bytes(bytes); in into_u16()
87 let bytes: [u8; len] = <[u8; len]>::try_from(self.buf[..len].as_ref()).unwrap(); in into_u32() localVariable
89 let res: u32 = u32::from_be_bytes(bytes); in into_u32()
92 let res: u32 = u32::from_le_bytes(bytes); in into_u32()
103 let bytes: [u8; len] = <[u8; len]>::try_from(self.buf[..len].as_ref()).unwrap(); in into_u64() localVariable
105 let res: u64 = u64::from_be_bytes(bytes); in into_u64()
108 let res: u64 = u64::from_le_bytes(bytes); in into_u64()
203 let bytes: [u8; len] = value.to_be_bytes(); in write_u8() localVariable
204 self.buf.copy_from_slice(bytes.as_slice()); in write_u8()
215 let bytes: [u8; len] = value.to_be_bytes(); in write_u16() localVariable
216 self.buf.copy_from_slice(bytes.as_slice()); in write_u16()
227 let bytes: [u8; len] = value.to_be_bytes(); in write_u32() localVariable
228 self.buf.copy_from_slice(bytes.as_slice()); in write_u32()
239 let bytes: [u8; len] = value.to_be_bytes(); in write_u64() localVariable
240 self.buf.copy_from_slice(bytes.as_slice()); in write_u64()