pub fn bytes_mut(&mut self) -> &mut [u8] {
        let len = self.len * self.sample_format.sample_size();
        // The safety of this block relies on correct construction of the `Data` instance. See
        // the unsafe `from_parts` constructor for these requirements.
        unsafe { std::slice::from_raw_parts_mut(self.data as *mut u8, len) }
    }
/// The raw slice of memory representing the underlying audio data as a slice of bytes.
///
/// It is up to the user to interpret the slice of memory based on `Data::sample_format`.
The raw slice of memory representing the underlying audio data as a slice of bytes.
It is up to the user to interpret the slice of memory based on `Data::sample_format`.
The raw slice of memory representing the underlying audio data as a slice of bytes . It is up to the user to interpret the slice of memory based on ` Data :: sample_format ` .
pub fn bytes_mut(&mut self) -> &mut [u8] {
        let len = self.len * self.sample_format.sample_size();
        // The safety of this block relies on correct construction of the `Data` instance. See
        // the unsafe `from_parts` constructor for these requirements.
        unsafe { std::slice::from_raw_parts_mut(self.data as *mut u8, len) }
    }
pub fn bytes_mut ( & mut self ) -> & mut [ u8 ] { let len = self . len * self . sample_format . sample_size ( ) ; // The safety of this block relies on correct construction of the `Data` instance. See // the unsafe `from_parts` constructor for these requirements. unsafe { std :: slice :: from_raw_parts_mut ( self . data as * mut u8 , len ) } }
The raw slice of memory representing the underlying audio data as a slice of bytes.
The raw slice of memory representing the underlying audio data as a slice of bytes .
&mut self
&mut self