Searched refs:from_bytes (Results 1 – 4 of 4) sorted by relevance
| /linux-6.15/rust/kernel/ |
| H A D | str.rs | 30 pub const fn from_bytes(bytes: &[u8]) -> &Self { in from_bytes() method 49 .map(Self::from_bytes) in strip_prefix() 141 BStr::from_bytes(&self.0[index]) in index() 147 BStr::from_bytes(self) in as_ref() 492 BStr::from_bytes(self.as_bytes()) in as_ref() 678 let hello_world = BStr::from_bytes(b"hello, world!"); in test_bstr_display() 682 let others = BStr::from_bytes(b"\x01"); in test_bstr_display() 684 let non_ascii = BStr::from_bytes(b"d\xe9j\xe0 vu"); in test_bstr_display() 692 let hello_world = BStr::from_bytes(b"hello, world!"); in test_bstr_debug() 696 let others = BStr::from_bytes(b"\x01"); in test_bstr_debug() [all …]
|
| /linux-6.15/scripts/gdb/linux/ |
| H A D | pgtable.py | 90 data = int.from_bytes(
|
| /linux-6.15/tools/testing/selftests/net/openvswitch/ |
| H A D | ovs-dpctl.py | 1052 lambda x: int.from_bytes(x, "big"), 1059 lambda x: int.from_bytes(x, "big"), 1321 lambda x: int.from_bytes(x, "big"), 1328 lambda x: int.from_bytes(x, "big"), 1365 ("sll", "sll", macstr, lambda x: int.from_bytes(x, "big")), 1366 ("tll", "tll", macstr, lambda x: int.from_bytes(x, "big")),
|
| /linux-6.15/tools/testing/selftests/tpm2/ |
| H A D | tpm2.py | 745 pcrSelect = int.from_bytes(pcrSelect, byteorder='big')
|