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

◆ ThrowOnDangerousLineSeparatorMultiSegment()

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

Definition at line 3907 of file Utf8JsonReader.cs.

3908 {
3909 if (localBuffer.IsEmpty)
3910 {
3911 return;
3912 }
3914 {
3915 if (localBuffer[0] != 128)
3916 {
3918 return;
3919 }
3920 localBuffer = localBuffer.Slice(1);
3922 if (localBuffer.IsEmpty)
3923 {
3924 return;
3925 }
3926 }
3928 {
3929 byte b = localBuffer[0];
3930 if (b == 168 || b == 169)
3931 {
3932 ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.UnexpectedEndOfLineSeparator, 0);
3933 }
3934 else
3935 {
3937 }
3938 }
3939 }

References System.Text.Json.Dictionary, and System.Text.Json.ThrowHelper.ThrowJsonReaderException().

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