pub fn copy_to_slice(&self, slice: &mut [f64]) -> usize {
        let mut len = slice.len();
        let size = self.get_size();
        if size < len {
            len = size;
        }
        unsafe {
            std::ptr::copy(self.ptr, slice.as_mut_ptr(), len);
            len
        }
    }
/// This method is used to copy data from the csound's buffer
/// into another slice.
/// # Arguments
/// * `slice` A mutable slice where the data will be copy
/// # Returns
/// The number of elements copied into the slice.
This method is used to copy data from the csound's buffer
into another slice.
This method is used to copy data from the csound ' s buffer into another slice .
pub fn copy_to_slice(&self, slice: &mut [f64]) -> usize {
        let mut len = slice.len();
        let size = self.get_size();
        if size < len {
            len = size;
        }
        unsafe {
            std::ptr::copy(self.ptr, slice.as_mut_ptr(), len);
            len
        }
    }
pub fn copy_to_slice ( & self , slice : & mut [ f64 ] ) -> usize { let mut len = slice . len ( ) ; let size = self . get_size ( ) ; if size < len { len = size ; } unsafe { std :: ptr :: copy ( self . ptr , slice . as_mut_ptr ( ) , len ) ; len } }
This method is used to copy data from the csound's buffer
into another slice.
This method is used to copy data from the csound ' s buffer into another slice .
&self
slice
&mut [f64]
The number of elements copied into the slice.
The number of elements copied into the slice .
&self
slice
&mut [f64]