pub unsafe fn write_slice<T>(write: &mut impl Write, value: &[T]) -> Result<()>
View this slice as a mutable slice of bytes and write it.