(bytes: &mut [u8])
| 726 | /// ``` |
| 727 | #[inline] |
| 728 | pub fn zeroize_bytes(bytes: &mut [u8]) { |
| 729 | // SAFETY: the slice provides exclusive access to its bytes, and zero is a valid u8. |
| 730 | unsafe { zeroize_byte_ptr(bytes.as_mut_ptr(), bytes.len()) } |
| 731 | } |
| 732 | |
| 733 | /// Zeroizes a flat type/struct. Only zeroizes the values that it owns, and it does not work on |
| 734 | /// dynamically sized values or trait objects. It would be inefficient to use this function on a |
no test coverage detected