logo
pub fn array_size<T: AsRef<str>>(name: T) -> Result<i32, SizeError>
Expand description

Gets the size of an array by its name from the pd patch which is loaded.

Example

use libpd_rs::array::array_size;

let size = array_size("my_array").unwrap();

Errors

A list of errors that can occur: