Home
last modified time | relevance | path

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

/linux/rust/kernel/
A Dstr.rs31 pub const fn from_bytes(bytes: &[u8]) -> &Self { in from_bytes() method
441 BStr::from_bytes(self.as_bytes()) in as_ref()
604 let hello_world = BStr::from_bytes(b"hello, world!"); in test_bstr_display()
606 let escapes = BStr::from_bytes(b"_\t_\n_\r_\\_\'_\"_"); in test_bstr_display()
608 let others = BStr::from_bytes(b"\x01"); in test_bstr_display()
610 let non_ascii = BStr::from_bytes(b"d\xe9j\xe0 vu"); in test_bstr_display()
612 let good_bytes = BStr::from_bytes(b"\xf0\x9f\xa6\x80"); in test_bstr_display()
618 let hello_world = BStr::from_bytes(b"hello, world!"); in test_bstr_debug()
620 let escapes = BStr::from_bytes(b"_\t_\n_\r_\\_\'_\"_"); in test_bstr_debug()
622 let others = BStr::from_bytes(b"\x01"); in test_bstr_debug()
[all …]
/linux/fs/reiserfs/
A Dfix_node.c375 int from, int from_bytes, in get_num_ver() argument
444 start_bytes = ((from_bytes != -1) ? from_bytes : 0); in get_num_ver()
556 && from_bytes != -1) ? from_bytes : 0); in get_num_ver()
584 && from_bytes != -1) ? from_bytes : 0); in get_num_ver()
/linux/scripts/gdb/linux/
A Dpgtable.py90 data = int.from_bytes(
/linux/tools/testing/selftests/net/openvswitch/
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/tools/testing/selftests/tpm2/
A Dtpm2.py745 pcrSelect = int.from_bytes(pcrSelect, byteorder='big')

Completed in 18 milliseconds