Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better abstraction to test view-style FFI APIs #4372

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

reneme
Copy link
Collaborator

@reneme reneme commented Oct 14, 2024

The previous method required the caller to know the expected size of the to-be-viewed byte buffer before calling the FFI function. Now, the wrapper class takes care of the allocation transparently.

This abstraction will come in handy when building FFI integrations for the upcoming PQC algorithms in the context of #4368.

The previous method required the caller to know the expected size of
the to-be-viewed byte buffer before calling the FFI function. Now, the
wrapper class takes care of the allocation transparently.
@reneme reneme requested a review from FAlbertDev October 14, 2024 08:39
@reneme reneme self-assigned this Oct 14, 2024
@reneme reneme merged commit ed74c95 into randombit:master Oct 14, 2024
36 of 37 checks passed
@reneme reneme deleted the refactor/ffi_view_fn_tests branch October 14, 2024 09:10
@coveralls
Copy link

Coverage Status

coverage: 91.113% (-0.006%) from 91.119%
when pulling 698fe84 on Rohde-Schwarz:refactor/ffi_view_fn_tests
into 7e02c5c on randombit:master.

@reneme reneme mentioned this pull request Oct 14, 2024
7 tasks
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.

3 participants