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

Use _bytes/nul-terminated, not _pointer w.r.t. appropriate char* structure fields #28

Open
zyrolasting opened this issue Feb 8, 2022 · 0 comments

Comments

@zyrolasting
Copy link
Owner

Credit to @dalev for observation in #27

Fwiw, I took a quick look at the copy of vk.xml in this repo, and there are both param and member elements with attribute len="null-terminated". I suspect that if that attribute is present, and the type is char*, then _bytes/nul-terminated would be an appropriate FFI type for the parameter or field in question. But I haven't tried it; it may not be so easy.

@zyrolasting zyrolasting changed the title Use _bytes/nul-terminated, not _pointer w.r.t. char* structure fields Use _bytes/nul-terminated, not _pointer w.r.t. appropriate char* structure fields Feb 8, 2022
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