discards rest of the data if mask is shorter than data a is where the mask is 1 b is where the mask is 0
mask –
data –
Notes