/// Copies the content of a function table into a slice.
/// # Arguments
/// * `table` The function table identifier.
/// # Returns
/// An error message if the table doesn't exist or the passed slice
/// doesn't have enough memory to content the table values.
Copies the content of a function table into a slice.
Copies the content of a function table into a slice .
pub fn table_copy_out(&self, table: u32, output: &mut [f64]) -> Result<(), &'static str> {
        unsafe {
            let size = self.table_length(table)?;
            if output.len() < size {
                Err("Not enough memory to copy the table")
            } else {
                csound_sys::csoundTableCopyOut(
                    self.engine.csound,
                    table as c_int,
                    output.as_ptr() as *mut c_double,
                );
                Ok(())
            }
        }
    }
pub fn table_copy_out ( & self , table : u32 , output : & mut [ f64 ] ) -> Result < ( ) , & ' static str > { unsafe { let size = self . table_length ( table ) ? ; if output . len ( ) < size { Err ( " " ) } else { csound_sys :: csoundTableCopyOut ( self . engine . csound , table as c_int , output . as_ptr ( ) as * mut c_double , ) ; Ok ( ( ) ) } } }
Copies the content of a function table into a slice.
Copies the content of a function table into a slice .
An error message if the table doesn't exist or the passed slice
doesn't have enough memory to content the table values.
An error message if the table doesn ' t exist or the passed slice doesn ' t have enough memory to content the table values .
&self
table
u32
output
&mut [f64]