Function libpd_rs::send::add_float_to_started_message
source · [−]pub fn add_float_to_started_message(value: f32)Expand description
Adds an f32 to the current message in the progress of composition
Example
use libpd_rs::send::{start_message, add_float_to_started_message};
libpd_rs::init();
// Arbitrary length
let message_length = 4;
if start_message(message_length).is_ok() {
add_float_to_started_message(42.0);
}Panics
To be honest I’d expect this to panic if you overflow a message buffer.
Although I didn’t check that, please create an issue.
