private void writeValues()
 {
     if (numLiterals != 0)
     {
         if (repeat)
         {
             output.WriteByte((byte)(numLiterals - MIN_REPEAT_SIZE));
             output.Write(literals, 0, 1);
         }
         else
         {
             output.WriteByte((byte)-numLiterals);
             output.Write(literals, 0, numLiterals);
         }
         repeat        = false;
         tailRunLength = 0;
         numLiterals   = 0;
     }
 }
 private void writeValues()
 {
     if (numLiterals != 0)
     {
         if (repeat)
         {
             output.WriteByte((byte)(numLiterals - MIN_REPEAT_SIZE));
             output.WriteByte((byte)delta);
             if (signed)
             {
                 utils.writeVslong(output, literals[0]);
             }
             else
             {
                 utils.writeVulong(output, (ulong)literals[0]);
             }
         }
         else
         {
             output.WriteByte((byte)-numLiterals);
             for (int i = 0; i < numLiterals; ++i)
             {
                 if (signed)
                 {
                     utils.writeVslong(output, literals[i]);
                 }
                 else
                 {
                     utils.writeVulong(output, (ulong)literals[i]);
                 }
             }
         }
         repeat        = false;
         numLiterals   = 0;
         tailRunLength = 0;
     }
 }