-
Notifications
You must be signed in to change notification settings - Fork 602
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
I am experimenting scraping c headers into winmd and use windows-bindgen to generate bindings from winmd here: youyuanwu/bnd. There is a discrepancy between metadata and bindgen for treating ArrayShape, which causes reader corruption and panic for reading elsewhere.
ArrayShape write in metadata crate writes 4 bytes:
| buffer.write_compressed(1); // rank |
While read in bindgen crate read 3 bytes:
| ELEMENT_TYPE_ARRAY => { |
#3892 attempted to fix this but there is further plan to change windows-bindgen crate, so it is not merged.
Crate manifest
Crate code
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working