Convert Byte Array to Bit Array?

前端 未结 6 1960
抹茶落季
抹茶落季 2020-12-30 20:43

How would I go about converting a bytearray to a bit array?

6条回答
  •  时光说笑
    2020-12-30 21:18

    The obvious way; using the constructor that takes a byte array:

    BitArray bits = new BitArray(arrayOfBytes);
    

提交回复
热议问题