BitArray.fromByteBuffer constructor
BitArray.fromByteBuffer(
- int length,
- ByteBuffer buffer
Creates a bit array using a byte buffer.
Implementation
factory BitArray.fromByteBuffer(int length, ByteBuffer buffer) {
final data = buffer.asUint32List();
return BitArray._(length, data);
}