You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is for the case where the user passes in an array as input, and the C function requires a 'size' argument. This ArgHandler would automatically compute the array length and pass it in.
We could use the existing 'len' handler, or perhaps create a new one because the semantics are a bit different.
It's not clear that 'bufin' is necessary, since strings would normally be null-terminated. Might be good to have it just in case though.
The text was updated successfully, but these errors were encountered:
It's been awhile since I've used NiceLib much, but I believe the typical workaround would be to hand-write a custom wrapper function. You could do this fully manually, or via "hybrid methods" (which unfortunately haven't been documented yet).
As an example use of hybrid methods, check out this Instrumental driver. The idea is that you decorate the hand-written method with a Sig---the auto-wrapped function is then available for use in the function body.
This is for the case where the user passes in an array as input, and the C function requires a 'size' argument. This ArgHandler would automatically compute the array length and pass it in.
We could use the existing 'len' handler, or perhaps create a new one because the semantics are a bit different.
It's not clear that 'bufin' is necessary, since strings would normally be null-terminated. Might be good to have it just in case though.
The text was updated successfully, but these errors were encountered: