pub fn table_copy_in(&mut self, table: u32, src: &[f64]) -> Result<(), &'static str> {
        let size = self.table_length(table)?;
        if size < src.len() {
            Err("Table doesn't have enough capacity")
        } else {
            unsafe {
                csound_sys::csoundTableCopyIn(
                    self.engine.csound,
                    table as c_int,
                    src.as_ptr() as *mut c_double,
                );
                Ok(())
            }
        }
    }
/// Copy the contents of an array into a given function table.
/// # Arguments
/// * `table` The function table identifier.
/// * `src` Slice with the values to be copied into the function table
/// # Returns
/// An error message if the table doesn't exist or doesn't have enough
/// capacity.
Copy the contents of an array into a given function table.
Copy the contents of an array into a given function table .
pub fn table_copy_in(&mut self, table: u32, src: &[f64]) -> Result<(), &'static str> {
        let size = self.table_length(table)?;
        if size < src.len() {
            Err("Table doesn't have enough capacity")
        } else {
            unsafe {
                csound_sys::csoundTableCopyIn(
                    self.engine.csound,
                    table as c_int,
                    src.as_ptr() as *mut c_double,
                );
                Ok(())
            }
        }
    }
pub fn table_copy_in ( & mut self , table : u32 , src : & [ f64 ] ) -> Result < ( ) , & ' static str > { let size = self . table_length ( table ) ? ; if size < src . len ( ) { Err ( " " ) } else { unsafe { csound_sys :: csoundTableCopyIn ( self . engine . csound , table as c_int , src . as_ptr ( ) as * mut c_double , ) ; Ok ( ( ) ) } } }
Copy the contents of an array into a given function table.
Copy the contents of an array into a given function table .
&mut self
table
u32
src
&[f64]
An error message if the table doesn't exist or doesn't have enough
capacity.
An error message if the table doesn ' t exist or doesn ' t have enough capacity .
&mut self
table
u32
src
&[f64]