Searched refs:kPatternLength (Results 1 – 2 of 2) sorted by relevance
158 static constexpr size_t kPatternLength = sizeof(kPattern) - 1; in handleRequest() local161 while (i + kPatternLength <= mInBufferLen in handleRequest()162 && memcmp(mInBuffer.data() + i, kPattern, kPatternLength)) { in handleRequest()166 if (i + kPatternLength > mInBufferLen) { in handleRequest()171 len = i + kPatternLength; in handleRequest()
171 static constexpr size_t kPatternLength = sizeof(kPattern) - 1; in handleResponse() local174 while (i + kPatternLength <= mInBufferLen in handleResponse()175 && memcmp(mInBuffer.data() + i, kPattern, kPatternLength)) { in handleResponse()179 if (i + kPatternLength > mInBufferLen) { in handleResponse()184 len = i + kPatternLength; in handleResponse()