Make sure we encode at least one character, even if valueToEncode is 0.
</p>

            </div>
            
            <div class="content"><div class='highlight'><pre>    <span class="keyword">while</span> valueToEncode <span class="keyword">or</span> <span class="keyword">not</span> answer
      nextChunk = valueToEncode &amp; VLQ_VALUE_MASK
      valueToEncode = valueToEncode &gt;&gt; VLQ_SHIFT
      nextChunk |= VLQ_CONTINUATION_BIT <span class="keyword">if</span> valueToEncode
      answer += <span 