Skip to content

Better abstraction to test view-style FFI APIs#4372

Merged
reneme merged 1 commit intorandombit:masterfrom
Rohde-Schwarz:refactor/ffi_view_fn_tests
Oct 14, 2024
Merged

Better abstraction to test view-style FFI APIs#4372
reneme merged 1 commit intorandombit:masterfrom
Rohde-Schwarz:refactor/ffi_view_fn_tests

Conversation

@reneme
Copy link
Copy Markdown
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
@reneme reneme deleted the refactor/ffi_view_fn_tests branch October 14, 2024 09:10
@coveralls
Copy link
Copy Markdown

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