Lines Matching refs:bytes
1081 const char* bytes = buffer.data();
1086 if (bytes[i] == '\n' && bytes[i + 1] == '\n')
1090 if (bytes[i] == '\r' && bytes[i + 1] == '\n') {
1094 else if (bytes[i] == '\n')
1097 else if (bytes[i] == '\r' && bytes[i + 1] == '\n')
1106 static inline const char* findEOL(const char* bytes, unsigned length)
1118 if (bytes[i] == '\n')
1119 return bytes + i;
1120 if (bytes[i] == '\r') {
1127 return bytes + i;
1162 const char* bytes = buffer.data();
1168 while ((eol = findEOL(bytes, length))) {
1169 const char* line = bytes;
1170 int lineLength = eol - bytes;
1172 // Move bytes to the character after the terminator as returned by findEOL.
1173 bytes = eol + 1;
1174 if ((*eol == '\r') && (*bytes == '\n'))
1175 bytes++; // Safe since findEOL won't return a spanning CRLF.
1177 length -= (bytes - line);