Home
last modified time | relevance | path

Searched refs:copy_from_slice (Results 1 – 25 of 104) sorted by relevance

12345

/external/rust/crates/half/src/
Dslice.rs338 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/
Dpkcs8.rs196 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_()
Ddigest.rs107 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()
Dhkdf.rs217 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/
Dimpls.rs43 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()
Dlib.rs322 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/
Drdrand.rs88 chunk.copy_from_slice(&rdrand()?); in rdrand_exact()
94 tail.copy_from_slice(&rdrand()?[..n]); in rdrand_exact()
/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()
Dread.rs393 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/
Dtest_buf_mut.rs119 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/
Dmod.rs708 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/
Dvirtio_pci_common_config.rs58 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/
Dhex.rs144 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/
Dmsix.rs295 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/
Dpadding.rs130 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/
Dmod.rs250 bytes.copy_from_slice(b); in from_slice()
357 bytes.copy_from_slice(b); in from_slice()
/external/rust/crates/criterion/patches/
Dcargo_pkg_version.patch5 .copy_from_slice(BENCHMARK_MAGIC_NUMBER.as_bytes());
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs520 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/
Dshift.rs50 in_out[..in_out_len].copy_from_slice(&block.as_ref()[..in_out_len]); in shift_partial()
/external/flatbuffers/tests/include_test/sub/
Dinclude_test2_generated.rs116 dst.copy_from_slice(src); in push()
127 dst.copy_from_slice(src); in push()
/external/flatbuffers/tests/namespace_test/
Dnamespace_test1_generated.rs120 dst.copy_from_slice(src); in push()
131 dst.copy_from_slice(src); in push()
/external/rust/crates/ring/src/ec/curve25519/
Dscalar.rs51 unreduced.copy_from_slice(digest.as_ref()); in from_sha512_digest_reduced()
/external/rust/crates/gdbstub/src/internal/
Dbe_bytes.rs23 buf[..len].copy_from_slice(&<$num>::to_be_bytes(self));
Dle_bytes.rs23 buf[..len].copy_from_slice(&<$num>::to_le_bytes(self));
/external/rust/crates/bytes/src/buf/
Duninit_slice.rs93 pub fn copy_from_slice(&mut self, src: &[u8]) { in copy_from_slice() method

12345