public static BitArray of(final byte[] data, final int begin, final int end) {
		final var bytes = Bits.copy(data, begin, end);
		return new BitArray(bytes, 0, end - begin);
	}
Create a new bit-array with the given {@code data} values and
{@code begin} and {@code end} <em>bit</em> indexes. The given
{@code data} is copied.

@param data the {@code byte[]} array which contains the bit data
@param begin the start bit index (inclusively)
@param end the end bit index (exclusively)
@return a newly created bit-array
@throws NullPointerException if the given {@code data} array is
        {@code null}
@throws IllegalArgumentException if the {@code begin} and {@code end}
        indexes are not within the valid range
jenetics/src/main/java/io/jenetics/internal/collection/BitArray.java