How to declare the structure with bit-fields in pyrex?

Yong Sun <[email protected]>
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
Hi, experts,

I have one problem, is to declare the data structure with bit-fields in
pyrex, if we have a C structure like

struct Test {
unsigned int head : 4
unsigned int tail : 28
};

How could I declare it in pyrex?

Regards,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.