Skip to content

Conversation

@smuenzel
Copy link

Add Unsafe operations to Cstruct, and the ppx generator.

Unsafe accessors are useful when it can be guaranteed that we will not access any values out of bounds, in order to not spend time on bounds checks.
For example if we wrap a cstruct x in an X.t, which is always of the right size, we do not have to force clients of that module to bounds check every access.

@smuenzel smuenzel marked this pull request as ready for review November 18, 2024 21:50
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