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

Function volatile_write

zeroize/src/lib.rs:735–737  ·  view source on GitHub ↗
(dst: &mut T, src: T)

Source from the content-addressed store, hash-verified

733/// Perform a volatile write to the destination
734#[inline(always)]
735fn volatile_write<T: Copy + Sized>(dst: &mut T, src: T) {
736 unsafe { ptr::write_volatile(dst, src) }
737}
738
739/// Perform a volatile `memset` operation which fills a slice with a value
740///

Callers 1

zeroizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected