MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / skipUntilNextLine

Function skipUntilNextLine

programs/git-import/git-import.cpp:448–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448static void skipUntilNextLine(ReadBuffer & buf)
449{
450 while (!buf.eof())
451 {
452 char * next_pos = find_first_symbols<'\n'>(buf.position(), buf.buffer().end());
453 buf.position() = next_pos;
454
455 if (!buf.hasPendingData())
456 continue;
457
458 if (*buf.position() == '\n')
459 {
460 ++buf.position();
461 return;
462 }
463 }
464}
465
466static void readStringUntilNextLine(std::string & s, ReadBuffer & buf)
467{

Callers 1

processDiffsFunction · 0.85

Calls 5

hasPendingDataMethod · 0.80
eofMethod · 0.45
positionMethod · 0.45
endMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected