MCPcopy Create free account
hub / github.com/RustCrypto/utils / volatile_fill_chunked

Function volatile_fill_chunked

zeroize/src/bulk.rs:78–86  ·  view source on GitHub ↗
(dst: &mut [T], src: T)

Source from the content-addressed store, hash-verified

76/// Prepare the repeated pattern and handle the tail independently of the bulk backend.
77#[inline(always)]
78fn volatile_fill_chunked<T: Copy, const N: usize>(dst: &mut [T], src: T) {
79 let (chunks, tail) = as_chunks_mut::<T, N>(dst);
80
81 if !chunks.is_empty() {
82 volatile_fill_iterative(chunks, [src; N]);
83 }
84
85 volatile_fill_iterative(tail, src);
86}
87
88/// Write individual elements or complete chunks with the same volatile primitive.
89#[inline(always)]

Callers

nothing calls this directly

Calls 2

volatile_fill_iterativeFunction · 0.85
is_emptyMethod · 0.80

Tested by

no test coverage detected