private void skipToEndOfLine() throws IOException {
    long index = source.indexOfElement(LINEFEED_OR_CARRIAGE_RETURN);
    buffer.skip(index != -1 ? index + 1 : buffer.size());
  }
Advances the position until after the next newline character. If the line
is terminated by "\r\n", the '\n' must be consumed as whitespace by the
caller.
lottie/src/main/java/com/airbnb/lottie/parser/moshi/JsonUtf8Reader.java