Tag: binarystream

BinaryReader – 阅读单个“BIT”?

案件 : 再次尝试通过我的NIC捕获数据包, 我开发了2个Extensions用于捕获可变数量的位 public static string ReadBits ( this BinaryReader Key , int Value ) { BitArray _BitArray = new BitArray ( Value ); for ( int Loop = 0 ; Loop > Value ; Loop++ ) { /* Problem HERE —> */ _BitArray [ Loop ] = Key . ReadBoolean ( ); } […]