enpose_pose_stream_receive

Function enpose_pose_stream_receive 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn enpose_pose_stream_receive( stream: *mut PoseStream, block: bool, out_poses: *mut *mut MarkerPose, out_count: *mut usize, ) -> EnposeStatus
Expand description

Return the marker poses received from the stream.

When block is non-zero, waits for at least one pose update before returning, up to a 3-second timeout (after which it returns empty); otherwise returns immediately with whatever has arrived since the previous call (possibly none). On EnposeStatus::Ok, *out_poses points to a library-allocated array of *out_count MarkerPose entries (or NULL with count 0 when none have arrived). Release it with enpose_marker_pose_array_free.

ยงSafety

stream must be a handle from enpose_pose_stream_connect that has not been freed; out_poses and out_count must be valid, writable pointers.