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

[Feature Request] Specify the arguments type for easy_c in nifs #501

Open
jn-jairo opened this issue Dec 23, 2024 · 0 comments
Open

[Feature Request] Specify the arguments type for easy_c in nifs #501

jn-jairo opened this issue Dec 23, 2024 · 0 comments

Comments

@jn-jairo
Copy link

When using the easy_c the arguments type are automatically set by zigler, but somethings you need a different type.

In my case the argument should be a null terminated string, but it is passing a string without the zero byte at the end, which causes the software to read other things in the memory.

If I write the wrapper function by myself I just need to add the type [*:0]u8 and it works properly, so I believe it should be possible to make an option to pass the argument type for the easy_c in the nifs, so I don't need to write the wrapper by myself just because of an argument type.

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

No branches or pull requests

1 participant