BitArray.length

size_t length() @property const @nogc nothrow pure @safe

Returns

Number of bits in the BitArray.
size_t length(size_t newlen) @property pure nothrow @system

Sets the amount of bits in the BitArray.

Warning: increasing length may overwrite bits in

the final word of the current underlying data regardless of whether it is shared between BitArray objects. i.e. D dynamic array extension semantics are not followed.