Skip to content

Add language bindings for buffer-backed sequences - #992

Draft
yuanknv wants to merge 1 commit into
ros2:rollingfrom
yuanknv:feat/rust-native-buffer
Draft

Add language bindings for buffer-backed sequences#992
yuanknv wants to merge 1 commit into
ros2:rollingfrom
yuanknv:feat/rust-native-buffer

Conversation

@yuanknv

@yuanknv yuanknv commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • expose exception-safe C helpers for creating, cloning, querying, comparing, and destroying rosidl::Buffer<uint8_t>
  • make primitive sequence copy and equality operations preserve native Buffer ownership
  • keep string and wide-string sequences on their existing three-field ABI

Dependency

Foundation PR for the Rust native Buffer stack; no other draft in the stack is required to review this change.

Test plan

  • Build rosidl_buffer and rosidl_runtime_c
  • Run their C/C++ unit tests
  • Validate Buffer-backed sequence clone, equality, and cleanup

Expose an exception-safe C API and make primitive sequence lifecycle operations preserve native Buffer ownership across language boundaries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant