Lines Matching refs:bytes
148 let mut bytes = [0; 8]; localVariable
149 bytes.copy_from_slice(&value[..]);
151 bytes[0] ^= 1 << 1;
153 Some(bytes)
161 let mut bytes = [0; 16]; in as_link_local_address() localVariable
162 bytes[0] = 0xfe; in as_link_local_address()
163 bytes[1] = 0x80; in as_link_local_address()
164 bytes[8..].copy_from_slice(&self.as_eui_64()?); in as_link_local_address()
166 Some(Ipv6Address::from_bytes(&bytes)) in as_link_local_address()
174 Self::Short(bytes) => write!(f, "{:02x}-{:02x}", bytes[0], bytes[1]), in fmt()
175 Self::Extended(bytes) => write!( in fmt()
178 bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7] in fmt()
895 ($name:ident $bytes:expr ; $($test_method:ident -> $expected:expr,)*) => {
899 let frame = &$bytes;