BitArray.fromByteBuffer constructor

BitArray.fromByteBuffer(
  1. int length,
  2. 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);
}