Home
last modified time | relevance | path

Searched refs:as_bytes (Results 1 – 13 of 13) sorted by relevance

/openbmc/openbmc/meta-security/recipes-ids/suricata/files/
H A DCVE-2024-38535_pre.patch42 - if block.name == name.as_bytes() {
43 + if block.name.as_ref() == name.as_bytes() {
51 - if block.name == name.as_bytes() {
52 + if block.name.as_ref() == name.as_bytes() {
60 - if block.name == name.as_bytes() {
61 + if block.name.as_ref() == name.as_bytes() {
80 - name: "Host".as_bytes().to_vec(),
81 - value: "abc.com".as_bytes().to_vec(),
82 + name: "Host".as_bytes().to_vec().into(),
83 + value: "abc.com".as_bytes().to_vec().into(),
[all …]
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_tagscompat.c34 unsigned char *b = ((union yaffs_tags_union *)tags)->as_bytes; in yaffs_calc_tags_ecc()
61 unsigned char *b = ((union yaffs_tags_union *)tags)->as_bytes; in yaffs_check_tags_ecc()
88 spare_ptr->tb0 = tu->as_bytes[0]; in yaffs_load_tags_to_spare()
89 spare_ptr->tb1 = tu->as_bytes[1]; in yaffs_load_tags_to_spare()
90 spare_ptr->tb2 = tu->as_bytes[2]; in yaffs_load_tags_to_spare()
91 spare_ptr->tb3 = tu->as_bytes[3]; in yaffs_load_tags_to_spare()
92 spare_ptr->tb4 = tu->as_bytes[4]; in yaffs_load_tags_to_spare()
93 spare_ptr->tb5 = tu->as_bytes[5]; in yaffs_load_tags_to_spare()
94 spare_ptr->tb6 = tu->as_bytes[6]; in yaffs_load_tags_to_spare()
95 spare_ptr->tb7 = tu->as_bytes[7]; in yaffs_load_tags_to_spare()
[all …]
H A Dyaffs_guts.h155 u8 as_bytes[8]; member
/openbmc/linux/rust/kernel/
H A Dstr.rs36 const C: &'static $crate::str::BStr = S.as_bytes();
154 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
179 core::str::from_utf8(self.as_bytes()) in to_str()
201 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()
228 for &c in self.as_bytes() { in fmt()
259 for &c in self.as_bytes() { in fmt()
274 self.as_bytes() in as_ref()
283 self.as_bytes() in deref()
294 let _ = &self.as_bytes()[index.start..]; in index()
330 &self.as_bytes()[index] in index()
[all …]
/openbmc/qemu/rust/qemu-api/src/
H A Dvmstate.rs58 .as_bytes()
135 .as_bytes()
183 .as_bytes()
208 .as_bytes()
233 .as_bytes()
H A Dc_str.rs13 const BYTES: &[u8] = STRING.as_bytes();
/openbmc/linux/scripts/
H A Drustdoc_test_builder.rs71 std::fs::write(path, body.as_bytes()).unwrap(); in main()
/openbmc/openbmc/poky/meta/recipes-devtools/rust/files/
H A Drepro-issue-fix-with-cc-crate-hashmap.patch47 - hasher.write(dirname.to_string().as_bytes());
48 + hasher.write(filtered_dirname.as_bytes());
90 - hasher.write(dirname.to_string().as_bytes());
91 + hasher.write(filtered_dirname.as_bytes());
/openbmc/linux/rust/macros/
H A Dmodule.rs71 string = Literal::byte_string(string.as_bytes()), in emit_base()
/openbmc/qemu/tests/qemu-iotests/
H A Dfat16.py161 def as_bytes(self) -> bytes: member in FatDirectoryEntry
461 + entry.as_bytes()
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dvvfat223 self.assertEqual(root_dir[0].as_bytes(),
/openbmc/linux/rust/alloc/
H A Dboxed.rs1334 let buf: Box<[u8]> = self.as_bytes().into(); in clone()
1567 unsafe { from_boxed_utf8_unchecked(Box::from(s.as_bytes())) } in from()
/openbmc/linux/rust/alloc/vec/
H A Dmod.rs3509 From::from(s.as_bytes()) in from()