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

◆ ThrowOnDangerousLineSeparator()

void System.Text.Json.Utf8JsonReader.ThrowOnDangerousLineSeparator ( ReadOnlySpan< byte > localBuffer)
inlineprivate

Definition at line 1825 of file Utf8JsonReader.cs.

1826 {
1827 if (localBuffer.Length >= 2)
1828 {
1829 byte b = localBuffer[1];
1830 if (localBuffer[0] == 128 && (b == 168 || b == 169))
1831 {
1832 ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.UnexpectedEndOfLineSeparator, 0);
1833 }
1834 }
1835 }

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

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