Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FindLineSeparatorMultiSegment()

int System.Text.Json.Utf8JsonReader.FindLineSeparatorMultiSegment ( ReadOnlySpan< byte > localBuffer,
ref int dangerousLineSeparatorBytesConsumed )
inlineprivate

Definition at line 3874 of file Utf8JsonReader.cs.

3875 {
3877 {
3880 {
3881 return -1;
3882 }
3883 }
3884 int num = 0;
3885 do
3886 {
3887 int num2 = localBuffer.IndexOfAny<byte>(10, 13, 226);
3889 if (num2 == -1)
3890 {
3891 return -1;
3892 }
3893 if (localBuffer[num2] != 226)
3894 {
3895 return num + num2;
3896 }
3897 int num3 = num2 + 1;
3898 localBuffer = localBuffer.Slice(num3);
3899 num += num3;
3902 }
3904 return -1;
3905 }
void ThrowOnDangerousLineSeparatorMultiSegment(ReadOnlySpan< byte > localBuffer, ref int dangerousLineSeparatorBytesConsumed)

References System.Text.Json.Dictionary, and System.Text.Json.Utf8JsonReader.ThrowOnDangerousLineSeparatorMultiSegment().

Referenced by System.Text.Json.Utf8JsonReader.SkipSingleLineCommentMultiSegment().