Comment Comment by fvncc There are libraries that help with these conversions. See e.g.: https://docs.rs/bytemuck/latest/bytemuck/trait.TransparentWr... parent fvncc 1 year ago