المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Arbitrary length bitfields?



C# Programming
06-27-2009, 12:50 AM
I want to create a structure where the elements are bitfields of arbitrary length - e.g. 12 bits followed by 4 bits which would be used as a union with an array but cannot see a neat with to do this.
Any suggestions?
Thanks.

Elaine http://www.barakasoft.com/script/Forums/Images/rose.gif

Visit http://www.notreadytogiveup.com/[^ (http://www.notreadytogiveup.com/)] and do something special today.