I have a boxed slice of possibly uninitialized bytes, and I need to write a slice of bytes to a position in that boxed slice. How do I do this?
I'm refactoring code that was previously like this:
self.storage .as_mut_ptr() .add(self.cursor) .cast::<T>() .write_unaligned(component);
But now the memory I need to write is a slice of bytes and isn't a
Sized type so I can't use