Lines Matching defs:bufPos
252 unsigned int bufPos = 0;
254 while (bufPos < bufSize) {
256 if (m_receiveBuf[bufPos] == '\n')
257 bufPos++;
263 for (unsigned int i = bufPos; lineLength < 0 && i < bufSize; i++) {
267 fieldLength = i - bufPos;
272 lineLength = i - bufPos;
280 parseEventStreamLine(bufPos, fieldLength, lineLength);
281 bufPos += lineLength + 1;
284 if (bufPos == bufSize)
286 else if (bufPos)
287 m_receiveBuf.remove(0, bufPos);
290 void EventSource::parseEventStreamLine(unsigned int bufPos, int fieldLength, int lineLength)
302 String field(&m_receiveBuf[bufPos], noValue ? lineLength : fieldLength);
306 else if (m_receiveBuf[bufPos + fieldLength + 1] != ' ')
310 bufPos += step;
315 m_data.append(&m_receiveBuf[bufPos], valueLength);
318 m_eventName = valueLength ? String(&m_receiveBuf[bufPos], valueLength) : "";
320 m_lastEventId = valueLength ? String(&m_receiveBuf[bufPos], valueLength) : "";
325 String value(&m_receiveBuf[bufPos], valueLength);