is outPos += 8*getBitWidth() or += getBitWidth()?