Searched refs:to_be_bytes (Results 1 – 19 of 19) sorted by relevance
319 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()
54 write_bytes!(&self.$reg.to_be_bytes()); in gdb_serialize()60 write_bytes!(®.to_be_bytes()); in gdb_serialize()64 write_bytes!(®.to_be_bytes()); in gdb_serialize()71 write_bytes!(®.to_be_bytes()); in gdb_serialize()
7 fn to_be_bytes(self, buf: &mut [u8]) -> Option<usize>; in to_be_bytes() method18 fn to_be_bytes(self, buf: &mut [u8]) -> Option<usize> {23 buf[..len].copy_from_slice(&<$num>::to_be_bytes(self));
166 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()
69 .write_all(&stream_id.to_be_bytes()) in main()72 .write_all(&(len as u32).to_be_bytes()) in main()
130 (&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()
77 buffer.write_all(&val.to_be_bytes())?; in write_pointer_table()101 buffer.write_all(&count.to_be_bytes())?; in write_refcount_block()
331 f.write_all(&value.to_be_bytes()) in write_to()337 f.write_all(&value.to_be_bytes()) in write_to()
91 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()
14 hello_buf[i..i + 2].clone_from_slice(&PROTOCOL_VERSION.to_be_bytes());
186 ctx.update(&u32::to_be_bytes(idx)); in derive_block()
107 pending[(block_len - 8)..block_len].copy_from_slice(&u64::to_be_bytes(completed_data_bits)); in finish()
122 let len = digit.to_be_bytes(&mut buf).unwrap(); in write_num()
419 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()
463 ctx.update(&u32::to_be_bytes(i as u32)); in mgf1()
99 pub fn to_be_bytes(self) -> [u8; 2] { in to_be_bytes() method100 self.0.to_be_bytes()
398 pub fn to_be_bytes(self) -> [u8; 2] { in to_be_bytes() method399 self.0.to_be_bytes()
298 if magic4 == QCOW_MAGIC.to_be_bytes() { in detect_image_type()
431 for (idx, byte) in resource_id.to_be_bytes().iter().enumerate() { in resource_assign_uuid()