Lines Matching refs:as_bytes
295 match self.as_bytes()[8] { in get_variant()
316 (self.as_bytes()[6] >> 4) as usize in get_version_num()
323 let v = self.as_bytes()[6] >> 4; in get_version()
379 let d1 = u32::from(self.as_bytes()[0]) << 24
380 | u32::from(self.as_bytes()[1]) << 16
381 | u32::from(self.as_bytes()[2]) << 8
382 | u32::from(self.as_bytes()[3]);
385 u16::from(self.as_bytes()[4]) << 8 | u16::from(self.as_bytes()[5]);
388 u16::from(self.as_bytes()[6]) << 8 | u16::from(self.as_bytes()[7]);
391 unsafe { &*(self.as_bytes()[8..16].as_ptr() as *const [u8; 8]) };
420 let d1 = u32::from(self.as_bytes()[0])
421 | u32::from(self.as_bytes()[1]) << 8
422 | u32::from(self.as_bytes()[2]) << 16
423 | u32::from(self.as_bytes()[3]) << 24;
426 u16::from(self.as_bytes()[4]) | u16::from(self.as_bytes()[5]) << 8;
429 u16::from(self.as_bytes()[6]) | u16::from(self.as_bytes()[7]) << 8;
432 unsafe { &*(self.as_bytes()[8..16].as_ptr() as *const [u8; 8]) };
456 u128::from(self.as_bytes()[0]) << 120 in as_u128()
457 | u128::from(self.as_bytes()[1]) << 112 in as_u128()
458 | u128::from(self.as_bytes()[2]) << 104 in as_u128()
459 | u128::from(self.as_bytes()[3]) << 96 in as_u128()
460 | u128::from(self.as_bytes()[4]) << 88 in as_u128()
461 | u128::from(self.as_bytes()[5]) << 80 in as_u128()
462 | u128::from(self.as_bytes()[6]) << 72 in as_u128()
463 | u128::from(self.as_bytes()[7]) << 64 in as_u128()
464 | u128::from(self.as_bytes()[8]) << 56 in as_u128()
465 | u128::from(self.as_bytes()[9]) << 48 in as_u128()
466 | u128::from(self.as_bytes()[10]) << 40 in as_u128()
467 | u128::from(self.as_bytes()[11]) << 32 in as_u128()
468 | u128::from(self.as_bytes()[12]) << 24 in as_u128()
469 | u128::from(self.as_bytes()[13]) << 16 in as_u128()
470 | u128::from(self.as_bytes()[14]) << 8 in as_u128()
471 | u128::from(self.as_bytes()[15]) in as_u128()
497 u128::from(self.as_bytes()[0]) in to_u128_le()
498 | u128::from(self.as_bytes()[1]) << 8 in to_u128_le()
499 | u128::from(self.as_bytes()[2]) << 16 in to_u128_le()
500 | u128::from(self.as_bytes()[3]) << 24 in to_u128_le()
501 | u128::from(self.as_bytes()[4]) << 32 in to_u128_le()
502 | u128::from(self.as_bytes()[5]) << 40 in to_u128_le()
503 | u128::from(self.as_bytes()[6]) << 48 in to_u128_le()
504 | u128::from(self.as_bytes()[7]) << 56 in to_u128_le()
505 | u128::from(self.as_bytes()[8]) << 64 in to_u128_le()
506 | u128::from(self.as_bytes()[9]) << 72 in to_u128_le()
507 | u128::from(self.as_bytes()[10]) << 80 in to_u128_le()
508 | u128::from(self.as_bytes()[11]) << 88 in to_u128_le()
509 | u128::from(self.as_bytes()[12]) << 96 in to_u128_le()
510 | u128::from(self.as_bytes()[13]) << 104 in to_u128_le()
511 | u128::from(self.as_bytes()[14]) << 112 in to_u128_le()
512 | u128::from(self.as_bytes()[15]) << 120 in to_u128_le()
516 pub const fn as_bytes(&self) -> &Bytes { in as_bytes() method
522 self.as_bytes().iter().all(|&b| b == 0) in is_nil()
757 Uuid::new_v3(&Uuid::NAMESPACE_DNS, "rust-lang.org".as_bytes()); in test_get_version_v3()
1040 let ub = u.as_bytes(); in test_as_bytes()
1055 let b_out = u.as_bytes(); in test_bytes_roundtrip()