The loop always consumes the bit read and the new bitstream reader can read 0 bits just fine.
Attach a file by drag & drop or click to upload