docs: private void writeVarUInt(int v)
      {
          int offset = myOffset;
  
          if (v < (1 << (7 * 1)))               // 1 byte - 7 bits used - 0x7f max
          {
              if (--offset < 0) {
                  offset = growBuffer(offset);
              }
              myBuffer[offset]     = (byte) (v | 0x80 );
          }
          else if (v < (1 << (7 * 2)))          // 2 bytes - 14 bits used - 0x3fff max
          {
              if ((offset -= 2) < 0) {
                  offset = growBuffer(offset);
              }
              myBuffer[offset]     = (byte) (v >>> (7 * 1));
              myBuffer[offset + 1] = (byte) (v | 0x80);
          }
          else if (v < (1 << (7 * 3)))          // 3 bytes - 21 bits used - 0x1fffff max
          {
              if ((offset -= 3) < 0) {
                  offset = growBuffer(offset);
              }
              myBuffer[offset]     = (byte) ( v >>> (7 * 2));
              myBuffer[offset + 1] = (byte) ((v >>> (7 * 1)) & 0x7f);
              myBuffer[offset + 2] = (byte) ( v | 0x80);
          }
          else if (v < (1 << (7 * 4)))          // 4 bytes - 28 bits used - 0xfffffff max
          {
              if ((offset -= 4) < 0) {
                  offset = growBuffer(offset);
              }
              myBuffer[offset]     = (byte) ( v >>> (7 * 3));
              myBuffer[offset + 1] = (byte) ((v >>> (7 * 2)) & 0x7f);
              myBuffer[offset + 2] = (byte) ((v >>> (7 * 1)) & 0x7f);
              myBuffer[offset + 3] = (byte) ( v | 0x80);
          }
          else                                  // 5 bytes - 32 bits used - 0x7fffffff max (Integer.MAX_VALUE)
          {
              if ((offset -= 5) < 0) {
                  offset = growBuffer(offset);
              }
              myBuffer[offset]     = (byte) ( v >>> (7 * 4));
              myBuffer[offset + 1] = (byte) ((v >>> (7 * 3)) & 0x7f);
              myBuffer[offset + 2] = (byte) ((v >>> (7 * 2)) & 0x7f);
              myBuffer[offset + 3] = (byte) ((v >>> (7 * 1)) & 0x7f);
              myBuffer[offset + 4] = (byte) ( v | 0x80);
          }
  
          myOffset = offset;
      }