Home
last modified time | relevance | path

Searched refs:to_be_bytes (Results 1 – 19 of 19) sorted by relevance

/external/rust/crates/bytes/src/buf/
Dbuf_mut.rs319 self.put_slice(&n.to_be_bytes()) in put_u16()
363 self.put_slice(&n.to_be_bytes()) in put_i16()
407 self.put_slice(&n.to_be_bytes()) in put_u32()
451 self.put_slice(&n.to_be_bytes()) in put_i32()
495 self.put_slice(&n.to_be_bytes()) in put_u64()
539 self.put_slice(&n.to_be_bytes()) in put_i64()
583 self.put_slice(&n.to_be_bytes()) in put_u128()
627 self.put_slice(&n.to_be_bytes()) in put_i128()
671 self.put_slice(&n.to_be_bytes()[mem::size_of_val(&n) - nbytes..]); in put_uint()
715 self.put_slice(&n.to_be_bytes()[mem::size_of_val(&n) - nbytes..]); in put_int()
/external/rust/crates/gdbstub/src/arch/ppc/reg/
Dcommon.rs54 write_bytes!(&self.$reg.to_be_bytes()); in gdb_serialize()
60 write_bytes!(&reg.to_be_bytes()); in gdb_serialize()
64 write_bytes!(&reg.to_be_bytes()); in gdb_serialize()
71 write_bytes!(&reg.to_be_bytes()); in gdb_serialize()
/external/rust/crates/gdbstub/src/internal/
Dbe_bytes.rs7 fn to_be_bytes(self, buf: &mut [u8]) -> Option<usize>; in to_be_bytes() method
18 fn to_be_bytes(self, buf: &mut [u8]) -> Option<usize> {
23 buf[..len].copy_from_slice(&<$num>::to_be_bytes(self));
/external/crosvm/arch/src/
Dfdt.rs166 data_slice.copy_from_slice(&val.to_be_bytes()); in update_u32()
170 self.data.extend_from_slice(&val.to_be_bytes()); in append_u32()
174 self.data.extend_from_slice(&val.to_be_bytes()); in append_u64()
271 self.property(name, &val.to_be_bytes()) in property_u32()
276 self.property(name, &val.to_be_bytes()) in property_u64()
283 arr.extend(&c.to_be_bytes()); in property_array_u32()
292 arr.extend(&c.to_be_bytes()); in property_array_u64()
/external/rust/crates/quiche/examples/
Dqpack-encode.rs69 .write_all(&stream_id.to_be_bytes()) in main()
72 .write_all(&(len as u32).to_be_bytes()) in main()
/external/rust/crates/serde_cbor/src/
Dser.rs130 (&mut buf[1..]).copy_from_slice(&55799u16.to_be_bytes()); in self_describe()
157 (&mut buf[1..]).copy_from_slice(&value.to_be_bytes()); in write_u16()
168 (&mut buf[1..]).copy_from_slice(&value.to_be_bytes()); in write_u32()
179 (&mut buf[1..]).copy_from_slice(&value.to_be_bytes()); in write_u64()
323 (&mut buf[1..]).copy_from_slice(&f16::from_f32(value).to_bits().to_be_bytes()); in serialize_f32()
327 (&mut buf[1..]).copy_from_slice(&value.to_bits().to_be_bytes()); in serialize_f32()
340 (&mut buf[1..]).copy_from_slice(&value.to_bits().to_be_bytes()); in serialize_f64()
/external/crosvm/disk/src/qcow/
Dqcow_raw_file.rs77 buffer.write_all(&val.to_be_bytes())?; in write_pointer_table()
101 buffer.write_all(&count.to_be_bytes())?; in write_refcount_block()
Dmod.rs331 f.write_all(&value.to_be_bytes()) in write_to()
337 f.write_all(&value.to_be_bytes()) in write_to()
/external/rust/crates/criterion/src/
Dconnection.rs91 hello_buf[i..i + 2].clone_from_slice(&PROTOCOL_VERSION.to_be_bytes()); in new()
93 hello_buf[i..i + 2].clone_from_slice(&PROTOCOL_FORMAT.to_be_bytes()); in new()
120 let length_buf = size.to_be_bytes(); in send()
/external/rust/crates/criterion/patches/
Dcargo_pkg_version.patch14 hello_buf[i..i + 2].clone_from_slice(&PROTOCOL_VERSION.to_be_bytes());
/external/rust/crates/ring/src/
Dpbkdf2.rs186 ctx.update(&u32::to_be_bytes(idx)); in derive_block()
Ddigest.rs107 pending[(block_len - 8)..block_len].copy_from_slice(&u64::to_be_bytes(completed_data_bits)); in finish()
/external/rust/crates/gdbstub/src/protocol/
Dresponse_writer.rs122 let len = digit.to_be_bytes(&mut buf).unwrap(); in write_num()
/external/rust/crates/quiche/src/
Dcrypto.rs419 let out_len = (out.len() as u16).to_be_bytes(); in hkdf_expand_label()
438 for (a, b) in nonce[4..].iter_mut().zip(counter.to_be_bytes().iter()) { in make_nonce()
/external/rust/crates/ring/src/rsa/
Dpadding.rs463 ctx.update(&u32::to_be_bytes(i as u32)); in mgf1()
/external/rust/crates/half/src/
Dbfloat.rs99 pub fn to_be_bytes(self) -> [u8; 2] { in to_be_bytes() method
100 self.0.to_be_bytes()
Dbinary16.rs398 pub fn to_be_bytes(self) -> [u8; 2] { in to_be_bytes() method
399 self.0.to_be_bytes()
/external/crosvm/disk/src/
Ddisk.rs298 if magic4 == QCOW_MAGIC.to_be_bytes() { in detect_image_type()
/external/crosvm/devices/src/virtio/gpu/
Dvirtio_gpu.rs431 for (idx, byte) in resource_id.to_be_bytes().iter().enumerate() { in resource_assign_uuid()