@Override
    public void seal() throws IOException {
        while (numBitsInCurrentByte != 0) {
            write(0);
        }
    }
Done writting to this stream.

<p>If called when this bit stream is not at a byte boundary, then the minimum number of "0"
bits (between 0 and 7 of them) are written as padding to reach the next byte boundary.
indexr-common/src/main/java/io/indexr/io/BitWrappedOutputStream.java