bit_array_blit(b, offset, dest_bitarray, dest_offset, count)
Copy the bit-pattern in the bit array b
to dest_bitarray
.
Count
bits are copied starting at offset
index in b
.
Bits are copied to dest_bitarray
starting at the dest_offset
index.
Return the updated bit array.
let b = #b[0, 1, 1, 0, 1]
let d = make_bit_array(10)
b
// #b[0, 1, 1, 0, 1]
d
// #b[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
bit_array_blit(b, 1, d, 5, 4)
// #b[0, 0, 0, 0, 0, 1, 1, 0, 1, 0]
d
// #b[0, 0, 0, 0, 0, 1, 1, 0, 1, 0]