shiftLeft

Shifts the first length bits of the source BitArray by numBits and stores it into the target BitArray.

Parameter length must be less than or equal to the source and target length.

pure
void
shiftLeft
(
const ref BitArray source
,
size_t length
,
size_t numBits
,
ref BitArray target
)

Parameters

source BitArray

Shift the bits given by this BitArray

length size_t

Defines how many bits to shift from the source. Cannot be higher than source/target length

numBits size_t

Defines the shift amount for each bit

target BitArray

The output BitArray to store the shifted result to

Meta