/external/rust/crates/half/src/ |
D | slice.rs | 338 self[dst_idx..dst_idx + 4].copy_from_slice(vec.reinterpret_cast()); in convert_from_f32_slice() 345 buf[..chunks.remainder().len()].copy_from_slice(chunks.remainder()); in convert_from_f32_slice() 349 .copy_from_slice(vec[..chunks.remainder().len()].reinterpret_cast()); in convert_from_f32_slice() 365 self[dst_idx..dst_idx + 4].copy_from_slice(vec.reinterpret_cast()); in convert_from_f64_slice() 372 buf[..chunks.remainder().len()].copy_from_slice(chunks.remainder()); in convert_from_f64_slice() 376 .copy_from_slice(vec[..chunks.remainder().len()].reinterpret_cast()); in convert_from_f64_slice() 392 dst[dst_idx..dst_idx + 4].copy_from_slice(&vec); in convert_to_f32_slice() 399 buf[..chunks.remainder().len()].copy_from_slice(chunks.remainder().reinterpret_cast()); in convert_to_f32_slice() 403 .copy_from_slice(&vec[..chunks.remainder().len()]); in convert_to_f32_slice() 419 dst[dst_idx..dst_idx + 4].copy_from_slice(&vec); in convert_to_f64_slice() [all …]
|
/external/rust/crates/ring/src/ |
D | pkcs8.rs | 196 bytes[..template.private_key_index].copy_from_slice(before_private_key); in wrap_key_() 197 bytes[template.private_key_index..private_key_end_index].copy_from_slice(&private_key); in wrap_key_() 199 .copy_from_slice(after_private_key); in wrap_key_() 200 bytes[(private_key_end_index + after_private_key.len())..].copy_from_slice(public_key); in wrap_key_()
|
D | digest.rs | 107 pending[(block_len - 8)..block_len].copy_from_slice(&u64::to_be_bytes(completed_data_bits)); in finish() 169 self.pending[self.num_pending..(self.num_pending + data.len())].copy_from_slice(data); in update() 177 self.pending[self.num_pending..block_len].copy_from_slice(&data[..to_copy]); in update() 188 .copy_from_slice(&remaining[(remaining.len() - num_to_save_for_later)..]); in update()
|
D | hkdf.rs | 217 out.copy_from_slice(&t[..len]); in fill_okm() 221 this_chunk.copy_from_slice(t); in fill_okm()
|
/external/rust/crates/rand_core/src/ |
D | impls.rs | 43 l.copy_from_slice(&chunk); in fill_bytes_via_next() 48 left.copy_from_slice(&chunk[..n]); in fill_bytes_via_next() 51 left.copy_from_slice(&chunk[..n]); in fill_bytes_via_next()
|
D | lib.rs | 322 chunk.copy_from_slice(&pcg32(&mut state)); in seed_from_u64() 326 rem.copy_from_slice(&pcg32(&mut state)[..rem.len()]); in seed_from_u64()
|
/external/rust/crates/getrandom/src/ |
D | rdrand.rs | 88 chunk.copy_from_slice(&rdrand()?); in rdrand_exact() 94 tail.copy_from_slice(&rdrand()?[..n]); in rdrand_exact()
|
/external/rust/crates/serde_cbor/src/ |
D | ser.rs | 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()
|
D | read.rs | 393 buf.copy_from_slice(&self.slice[self.index..end]); in read_into() 481 self.scratch[self.scratch_index..scratch_end].copy_from_slice(&slice); in read_to_buffer() 502 buf.copy_from_slice(&self.slice[self.index..end]); in read_into() 624 buf.copy_from_slice(&self.slice[self.index..end]); in read_into()
|
/external/rust/crates/bytes/tests/ |
D | test_buf_mut.rs | 119 slice.copy_from_slice(b"a"); in copy_from_slice_panics_if_different_length_1() 128 slice.copy_from_slice(b"abcd"); in copy_from_slice_panics_if_different_length_2()
|
/external/rust/crates/uuid/src/adapter/ |
D | mod.rs | 708 buffer[..9].copy_from_slice(b"urn:uuid:"); in encode_lower() 761 buffer[..9].copy_from_slice(b"urn:uuid:"); in encode_upper() 830 buffer[..9].copy_from_slice(b"urn:uuid:"); in encode_lower() 883 buffer[..9].copy_from_slice(b"urn:uuid:"); in encode_upper()
|
/external/crosvm/devices/src/virtio/ |
D | virtio_pci_common_config.rs | 58 data.copy_from_slice(&v.to_le_bytes()); in read() 62 data.copy_from_slice(&v.to_le_bytes()); in read() 66 data.copy_from_slice(&v.to_le_bytes()); in read()
|
/external/rust/crates/gdbstub/src/protocol/common/ |
D | hex.rs | 144 buf[start_idx..].copy_from_slice(&payload); in encode_hex_simple() 161 data_buf[..c.len()].copy_from_slice(c); in encode_hex_in_chunks()
|
/external/crosvm/devices/src/pci/ |
D | msix.rs | 295 data.copy_from_slice(&value.to_le_bytes()); in read_msix_table() 313 data.copy_from_slice(&value.to_le_bytes()); in read_msix_table() 420 data.copy_from_slice(&value.to_le_bytes()); in read_pba_entries() 431 data.copy_from_slice(&value.to_le_bytes()); in read_pba_entries()
|
/external/rust/crates/ring/src/rsa/ |
D | padding.rs | 130 digest_prefix.copy_from_slice(pkcs1.digestinfo_prefix); in pkcs1_encode() 131 digest_dst.copy_from_slice(m_hash.as_ref()); in pkcs1_encode() 299 digest_terminator[..metrics.h_len].copy_from_slice(h_hash.as_ref()); in encode() 466 mask_chunk.copy_from_slice(&digest.as_ref()[..mask_chunk_len]); in mgf1()
|
/external/rust/crates/uuid/src/builder/ |
D | mod.rs | 250 bytes.copy_from_slice(b); in from_slice() 357 bytes.copy_from_slice(b); in from_slice()
|
/external/rust/crates/criterion/patches/ |
D | cargo_pkg_version.patch | 5 .copy_from_slice(BENCHMARK_MAGIC_NUMBER.as_bytes());
|
/external/rust/crates/ring/src/arithmetic/ |
D | bigint.rs | 520 tmp.copy_from_slice(&a.limbs); in elem_reduced() 546 r.limbs[..a.limbs.len()].copy_from_slice(&a.limbs); in elem_widen() 864 entry_mut(&mut table, 0, num_limbs).copy_from_slice(&tmp.limbs); in elem_exp_consttime() 865 entry_mut(&mut table, 1, num_limbs).copy_from_slice(&base.limbs); in elem_exp_consttime() 948 entry_mut(state, BASE, num_limbs).copy_from_slice(&base.limbs); in elem_exp_consttime() 949 entry_mut(state, M, num_limbs).copy_from_slice(&m.limbs); in elem_exp_consttime() 1046 entry_mut(state, ACC, num_limbs).copy_from_slice(&base.limbs); in elem_exp_consttime() 1095 r.limbs.copy_from_slice(entry(state, ACC, num_limbs)); in elem_exp_consttime() 1158 r.limbs[0..self.limbs.len()].copy_from_slice(&self.limbs); in to_elem() 1564 limbs[0..value.limbs.len()].copy_from_slice(&value.limbs); in consume_elem_unchecked()
|
/external/rust/crates/ring/src/aead/ |
D | shift.rs | 50 in_out[..in_out_len].copy_from_slice(&block.as_ref()[..in_out_len]); in shift_partial()
|
/external/flatbuffers/tests/include_test/sub/ |
D | include_test2_generated.rs | 116 dst.copy_from_slice(src); in push() 127 dst.copy_from_slice(src); in push()
|
/external/flatbuffers/tests/namespace_test/ |
D | namespace_test1_generated.rs | 120 dst.copy_from_slice(src); in push() 131 dst.copy_from_slice(src); in push()
|
/external/rust/crates/ring/src/ec/curve25519/ |
D | scalar.rs | 51 unreduced.copy_from_slice(digest.as_ref()); in from_sha512_digest_reduced()
|
/external/rust/crates/gdbstub/src/internal/ |
D | be_bytes.rs | 23 buf[..len].copy_from_slice(&<$num>::to_be_bytes(self));
|
D | le_bytes.rs | 23 buf[..len].copy_from_slice(&<$num>::to_le_bytes(self));
|
/external/rust/crates/bytes/src/buf/ |
D | uninit_slice.rs | 93 pub fn copy_from_slice(&mut self, src: &[u8]) { in copy_from_slice() method
|