C lang Bit Fields described by MemoryLayout API

Daniel Meier daniel.meier21 at outlook.com
Wed Nov 29 02:09:39 UTC 2023


Hello,

How can C language Bit Fields (https://learn.microsoft.com/en-us/cpp/c-language/c-bit-fields) be described using MemoryLayout API? I've tried to apply jextract at FSP_FSCTL_VOLUME_PARAMS struct (https://github.com/winfsp/winfsp/blob/master/inc/winfsp/fsctl.h) and it failed to generate all the structure fields. So I wonder how to describe memory layout of such structure manually.

Thank you.

Regards
Daniel


More information about the panama-dev mailing list