Fills a number of {@code bit}s, specified by {@code numOfBitsToFill}, with a {@code bit} value specified by {@code bitValuePerBit}, so that the write cursor will fast forward to the desired location. The reference implementation will write the data specified by {@code bitValuePerBit}repeatedly until {@code numOfBitsToFill bits} of data are written.If the {@code bit}s being filled exceeds the current size of the {@code Buffer}'s maximum allowed space, re-alloc-expanding will occur.
@param numOfBitsToFill The number of bits to fill to fast forwardthe write cursor. Note that re-alloc-expanding may occur.
@param bitValuePerBit The {@code bit} value to fill the buffer.
@throws IllegalArgumentException one of the following occurs:
- {@code numOfBitsToFill} is negative.
- {@code numOfBitsToFill} is zero.
- {@code bitValuePerBit} is not a valid bit value(neither {@code 1 (true)} nor {@code 0 (false)}).
@throws IOException the underlying I/O operation fails.