We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc5fc1e commit c642b77Copy full SHA for c642b77
rosidl_runtime_rs/src/sequence.rs
@@ -578,6 +578,16 @@ macro_rules! impl_sequence_alloc_for_primitive_type {
578
$init_func(seq as *mut _, size)
579
}
580
581
+ /// Finalizes a sequence, freeing any associated resources.
582
+ ///
583
+ /// # Safety
584
585
+ /// This function is unsafe because it calls an unsafe function `$fini_func`.
586
+ /// The caller must ensure that `$fini_func` is safe to call with the provided arguments.
587
588
+ /// # Arguments
589
590
+ /// * `seq` - A mutable reference to the sequence to be finalized.
591
fn sequence_fini(seq: &mut Sequence<Self>) {
592
// SAFETY: There are no special preconditions to the sequence_fini function.
593
unsafe { $fini_func(seq as *mut _) }
0 commit comments