Lines Matching refs:raw

187         let raw = buffer.as_ref();  in dispatch()  localVariable
189 if raw.is_empty() { in dispatch()
193 if raw[0] >> 3 == DISPATCH_FIRST_FRAGMENT_HEADER || raw[0] >> 3 == DISPATCH_FRAGMENT_HEADER in dispatch()
196 } else if raw[0] >> 5 == DISPATCH_IPHC_HEADER { in dispatch()
320 let raw = self.buffer.as_ref(); in dispatch() localVariable
321 raw[field::DISPATCH] >> 3 in dispatch()
326 let raw = self.buffer.as_ref(); in datagram_size() localVariable
327 NetworkEndian::read_u16(&raw[field::DATAGRAM_SIZE]) & 0b111_1111_1111 in datagram_size()
332 let raw = self.buffer.as_ref(); in datagram_tag() localVariable
333 NetworkEndian::read_u16(&raw[field::DATAGRAM_TAG]) in datagram_tag()
341 let raw = self.buffer.as_ref(); in datagram_offset() localVariable
342 raw[field::DATAGRAM_OFFSET] in datagram_offset()
369 let raw = self.buffer.as_ref(); in payload() localVariable
370 &raw[field::FIRST_FRAGMENT_REST] in payload()
373 let raw = self.buffer.as_ref(); in payload() localVariable
374 &raw[field::NEXT_FRAGMENT_REST] in payload()
383 let raw = self.buffer.as_mut(); in set_dispatch_field() localVariable
384 raw[field::DISPATCH] = (raw[field::DISPATCH] & !(0b11111 << 3)) | (value << 3); in set_dispatch_field()
388 let raw = self.buffer.as_mut(); in set_datagram_size() localVariable
389 let mut v = NetworkEndian::read_u16(&raw[field::DATAGRAM_SIZE]); in set_datagram_size()
392 NetworkEndian::write_u16(&mut raw[field::DATAGRAM_SIZE], v); in set_datagram_size()
396 let raw = self.buffer.as_mut(); in set_datagram_tag() localVariable
397 NetworkEndian::write_u16(&mut raw[field::DATAGRAM_TAG], tag); in set_datagram_tag()
401 let raw = self.buffer.as_mut(); in set_datagram_offset() localVariable
402 raw[field::DATAGRAM_OFFSET] = offset; in set_datagram_offset()
488 let raw = NetworkEndian::read_u16(&data[field::IPHC_FIELD]); localVariable
489 ((raw >> $shift) & $mask) as u8
498 let mut raw = NetworkEndian::read_u16(data); localVariable
500 raw = (raw & !($mask << $shift)) | ((val as u16) << $shift);
501 NetworkEndian::write_u16(data, raw);
929 let mut raw = NetworkEndian::read_u16(data); in set_dispatch_field() localVariable
931 raw = (raw & !(0b111 << 13)) | (0b11 << 13); in set_dispatch_field()
932 NetworkEndian::write_u16(data, raw); in set_dispatch_field()
946 let raw = self.buffer.as_mut(); in set_field() localVariable
947 raw[idx..idx + value.len()].copy_from_slice(value); in set_field()
1415 let raw = &data[0]; localVariable
1416 ((raw >> $shift) & $mask) as u8
1425 let mut raw = data[0]; localVariable
1426 raw = (raw & !($mask << $shift)) | (val << $shift);
1427 data[0] = raw;
1463 let raw = buffer.as_ref(); in dispatch() localVariable
1464 if raw.is_empty() { in dispatch()
1468 if raw[0] >> 4 == DISPATCH_EXT_HEADER { in dispatch()
1471 } else if raw[0] >> 3 == DISPATCH_UDP_HEADER { in dispatch()