docs: public void getAll(boolean discard)
      {
          if (discard)
          {
              mark = position;
              marked = remaining;
          }
          else
          {
              marked += remaining;
          }
          position = (position+remaining) % capacity;
          remaining = 0;
          updated();
      }