R
Rainer Queck
Hi NG
I have some questions concerning BitArrays.
Assumption : BitArray with 16 Bits
Is it possible to "load" a BitArray with a UInt16 Value with out iterating
it like:
UInt16 Bits = 0xAA55;
for (int i = 0 ; i<16 ; i++){
MyBitArray = (Bits & Mask) >0 ;
Mask <<= 1;
}
and then, is there a way to "read" a BitArray like (without iterating like
above)
UInt16 Bits = MyBitArray.<some read method> ?
Thanks for hints and help.
Regards
Rainer
I have some questions concerning BitArrays.
Assumption : BitArray with 16 Bits
Is it possible to "load" a BitArray with a UInt16 Value with out iterating
it like:
UInt16 Bits = 0xAA55;
for (int i = 0 ; i<16 ; i++){
MyBitArray = (Bits & Mask) >0 ;
Mask <<= 1;
}
and then, is there a way to "read" a BitArray like (without iterating like
above)
UInt16 Bits = MyBitArray.<some read method> ?
Thanks for hints and help.
Regards
Rainer