/// method used to copy data into this buffer
/// # Arguments
/// * `slice` A slice with samples to copy
/// # Returns
/// The number of elements copied into the csound's buffer.
method used to copy data into this buffer
method used to copy data into this buffer
pub fn copy_from_slice(&self, slice: &[f64]) -> usize {
        let mut len = slice.len();
        let size = self.get_size();
        if size < len {
            len = size;
        }
        unsafe {
            std::ptr::copy(slice.as_ptr(), self.ptr, len);
            len
        }
    }
pub fn copy_from_slice ( & self , slice : & [ f64 ] ) -> usize { let mut len = slice . len ( ) ; let size = self . get_size ( ) ; if size < len { len = size ; } unsafe { std :: ptr :: copy ( slice . as_ptr ( ) , self . ptr , len ) ; len } }
method used to copy data into this buffer
method used to copy data into this buffer
The number of elements copied into the csound's buffer.
The number of elements copied into the csound ' s buffer .
&self
slice
&[f64]