bottlenoselabs / c2cs

Generate C# bindings from a C header.
MIT License
250 stars 18 forks source link

Fix padding calculations for bitfields #102

Closed lithiumtoast closed 2 years ago

lithiumtoast commented 2 years ago

C bitfields were previously incorrectly calculated. This has impact on generating bindings for imgui. Note that padding values indicate when there are "holes" in the struct. See http://www.catb.org/esr/structure-packing/#_padding for more details.