Searched refs:VAL_BYTES (Results 1 – 1 of 1) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | lib.rs | 7005 const VAL_BYTES: [u8; 8] = VAL.to_be_bytes(); in test_read_write() constant 7007 const VAL_BYTES: [u8; 8] = VAL.to_le_bytes(); in test_read_write() constant 7012 assert_eq!(u64::read_from_bytes(&VAL_BYTES[..]), Ok(VAL)); in test_read_write() 7015 let bytes_with_prefix: [u8; 16] = transmute!([VAL_BYTES, [0; 8]]); in test_read_write() 7017 assert_eq!(u64::read_from_suffix(&bytes_with_prefix[..]), Ok((&VAL_BYTES[..], 0))); in test_read_write() 7020 let bytes_with_suffix: [u8; 16] = transmute!([[0; 8], VAL_BYTES]); in test_read_write() 7021 assert_eq!(u64::read_from_prefix(&bytes_with_suffix[..]), Ok((0, &VAL_BYTES[..]))); in test_read_write() 7028 assert_eq!(bytes, VAL_BYTES); in test_read_write() 7031 let want: [u8; 16] = transmute!([VAL_BYTES, [0; 8]]); in test_read_write() 7035 let want: [u8; 16] = transmute!([[0; 8], VAL_BYTES]); in test_read_write()
|