code: public static int consumeWS(final Buffer buffer) throws SipParseException {
          try {
              boolean done = false;
              int count = 0;
              while (buffer.hasReadableBytes() && !done) {
                  if (isNext(buffer, SP) || isNext(buffer, HTAB)) {
                      buffer.readByte();
                      ++count;
                  } else {
                      done = true;
                  }
              }
              return count;
          } catch (final IOException e) {
              throw new SipParseException(buffer.getReaderIndex(), UNABLE_TO_READ_FROM_STREAM, e);
          }
      }
docs: Consume all the whitespace we find (WS)
  
  @param buffer
  @return true if we did consume something, false otherwise