<div dir="ltr">Hi everyone,<br><br>Has ctypes some support for bit fields in C struct? If not is it correct to encode:<br><br><span style="font-family:courier new,monospace">typedef struct {<br> int32_t pos;<br> uint32_t bin:16, qual:8, l_qname:8;<br>
...<br>} bam1_core_t<br></span><br>as:<br><br><span style="font-family:courier new,monospace"> type bam1_core_t<br> let bam1_core_t : bam1_core_t structure typ = structure "bam1_core_t"<br> let bam1_core_t_pos_f = field bam1_core_t "pos" int32_t<br>
let bam1_core_t_props_f = field bam1_core_t "props" int32_t<br> ...<br> let () = seal bam1_core_t<br></span><br>and then play with the fake "props" field directly?<br><br>Cheers,<br> Philippe.<br>
<br></div>