bitvector-jvm-0.1.4 / net.onedaybeard.bitvector / BitVector / ensureCapacity

ensureCapacity

fun ensureCapacity(bits: Int): Unit (source)

Grows the backing array so that it can hold the requested bits. Mostly applicable when relying on the unsafe methods, including unsafeGet and unsafeClear.

Parameters

bits - number of bits to accomodate