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

Function volatile_fill_iterative

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

Source from the content-addressed store, hash-verified

88/// Write individual elements or complete chunks with the same volatile primitive.
89#[inline(always)]
90fn volatile_fill_iterative<T: Copy>(dst: &mut [T], src: T) {
91 for item in dst {
92 volatile_write(item, src);
93 }
94}
95
96/// MSRV-compatible copy of core's `slice::as_chunks_mut` taken from Rust 1.88.0.
97/// Source: <https://github.com/rust-lang/rust/blob/1.88.0/library/core/src/slice/mod.rs>

Callers 2

volatile_fill_sliceFunction · 0.85
volatile_fill_chunkedFunction · 0.85

Calls 1

volatile_writeFunction · 0.85

Tested by

no test coverage detected