michaeldesilva[m: > <@michael.desilva:matrix.org> Rather than doing the following, is there a low-level way to initialise the data held to a specific value? Something similar to `memset` from C++. > > ```rust > let ram_slice = core::slice::from_raw_parts_mut(ram_ptr, sdram_size / core::mem::size_of::()); > > // this would be slow > for elem in ram_slice.iter_mut() { > *elem = 0; > } > ``` Probably this: https://doc.rust-lang.org/std/primitive.slice.html#method.fill