Skip to content

Conversation

Mallets
Copy link
Contributor

@Mallets Mallets commented Mar 25, 2024

Move from NonZeroU128 to [u8;16].

Pros:

  • Memory layout guarantees across platforms and compiler versions for FFI

Cons:

  • The usage of NonZeroU128 exploits compiler niche for Option<NonZeroU128>.

Linked PR: eclipse-zenoh/zenoh-c#295

@JEnoch JEnoch merged commit 874b7e4 into master Mar 25, 2024
@Mallets Mallets deleted the zid branch March 25, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants