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.
coverage: 91.113% (-0.006%) from 91.119%
when pulling 698fe845d08476e86f55d4ede3d1648e2fffa08b on Rohde-Schwarz:refactor/ffi_view_fn_tests
into 7e02c5c7bfae04f5c3764f1301945e9aef32d9f0 on randombit:master.
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.