Figure 12: Refilling the buffer. The BitInputStream gets another byte from the InputStream and places it in the buffer.
Figure 12