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
{{ message }}
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
we are sending a C.longlong(val)
I think that that the knowledge about C.TYPE should be set by the C layer (we call a different function each time) and the data is passed as a pointer
this will allow the following function signature:
To be honest, now that I am writing this down I am not sure that the Go GC allows can promise that memory in the Go run time will be preserved during the C function run ( and C layer will need to copy that memory and not store it - a point of failure ) so maybe I'll need to think on a different technique .
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This requires a bit more refactoring in the C side in order to get a generic structure for this type of functions.
For example:
should pass a pointer (and the C function will cast it)
val.UnixNano should be defined as a Mutator function for the template.
The text was updated successfully, but these errors were encountered: