private void setBytes(byte[] needWrittenBytes, int length) {
        for (int i = 0; i < length; i++) {
            if (Bit.isBitSet(needWrittenBytes, i)) {
                bitSet.set(this.bitOffset++);
            } else {
                bitSet.clear(this.bitOffset++);
            }
        }
    }
Write the specified byte array into the buffer from the current position with the specified bit length.

@param needWrittenBytes Specify the needed written byte array.
@param length           Specify the bit length which the byte array will occupy in the buffer.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/util/BitWriter.java