Home
last modified time | relevance | path

Searched refs:from_bytes (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/rust/kernel/
H A Dstr.rs30 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 Dpgtable.py90 data = int.from_bytes(
/linux-6.15/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py1052 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 Dtpm2.py745 pcrSelect = int.from_bytes(pcrSelect, byteorder='big')