fn req_bytes_mut(&mut self, n_samples: usize) -> &mut [u8] {
        assert!(n_samples <= self.capacity());

        let end = n_samples * mem::size_of::<S::StreamType>();
        self.n_written = n_samples;
        &mut self.buf[..end]
    }
/// Gets a mutable byte buffer from the `RawSampleBuffer` where samples may be written. Calls to
/// this function will overwrite any previously written data since it is not known how the
/// samples for each channel are laid out in the buffer.
Gets a mutable byte buffer from the `RawSampleBuffer` where samples may be written. Calls to
this function will overwrite any previously written data since it is not known how the
samples for each channel are laid out in the buffer.
Gets a mutable byte buffer from the ` RawSampleBuffer ` where samples may be written . Calls to this function will overwrite any previously written data since it is not known how the samples for each channel are laid out in the buffer .
fn req_bytes_mut(&mut self, n_samples: usize) -> &mut [u8] {
        assert!(n_samples <= self.capacity());
        let end = n_samples * mem::size_of::<S::StreamType>();
        self.n_written = n_samples;
        &mut self.buf[..end]
    }
fn req_bytes_mut ( & mut self , n_samples : usize ) -> & mut [ u8 ] { assert ! ( n_samples self capacity ( ) ) ; let end = n_samples * mem :: size_of :: < S :: StreamType > ( ) ; self . n_written = n_samples ; & mut self . buf [ .. end ] }
Gets a mutable byte buffer from the `RawSampleBuffer` where samples may be written.
Gets a mutable byte buffer from the ` RawSampleBuffer ` where samples may be written .
&mut self
n_samples
usize
&mut self
n_samples
usize