pub fn emit(mut data: impl AsMut<[u8]>) -> Result<u32> {
    let data = data.as_mut();

    let retval = unsafe { ffi::emit(data.as_mut_ptr() as u32, data.len() as u32) };

    Ok(retval)
}
/// Emit the data back to the host.
/// When returning `Ok(i64)` it indicates the number of events emitted so far.
Emit the data back to the host.
When returning `Ok(i64)` it indicates the number of events emitted so far.
Emit the data back to the host . When returning ` Ok ( i64 ) ` it indicates the number of events emitted so far .
pub fn emit(mut data: impl AsMut<[u8]>) -> Result<u32> {
    let data = data.as_mut();
    let retval = unsafe { ffi::emit(data.as_mut_ptr() as u32, data.len() as u32) };
    Ok(retval)
}
pub fn emit ( mut data : impl AsMut < [ u8 ] > ) -> Result < u32 > { let data = data . as_mut ( ) ; let retval = unsafe { ffi :: emit ( data . as_mut_ptr ( ) as u32 , data . len ( ) as u32 ) } ; Ok ( retval ) }
Emit the data back to the host.
Emit the data back to the host .
data
impl AsMut<[u8]>