You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let buf = unsafe_block!("The buffer lives as long as this function, the length is within the buffer and the buffer won't be read before initialization" => buf_out.as_uninit_bytes_mut(buf_len));
271
272
let chan_man:&FFIArcChannelManager = unsafe_block!("We know handle points to valid channel_manager" => handle.as_ref());
272
-
let e = chan_man.get_and_clear_pending_events().try_into()?;
273
-
unsafe_block!("We know out parameter is writable" => events.init(e));
274
-
FFIResult::ok()
273
+
letmut e = FFIEvents{ events: chan_man.get_and_clear_pending_events()};
274
+
into_fixed_buffer(&mut e, buf,&mut actual_channels_len)
0 commit comments