<PackageReference Include="System.Text.Json" Version="10.0.5" />

System.Text.Json.JsonReaderHelper

static class JsonReaderHelper
namespace System.Text.Json { internal static class JsonReaderHelper { public static readonly UTF8Encoding s_utf8Encoding; public static bool ContainsSpecialCharacters(this ReadOnlySpan<char> text); public static (int, int) CountNewLines(ReadOnlySpan<byte> data); public static bool IsTokenTypePrimitive(JsonTokenType tokenType); public static bool IsHexDigit(byte nextByte); public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out DateTime value); public static bool TryGetEscapedDateTime(ReadOnlySpan<byte> source, out DateTime value); public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out DateTimeOffset value); public static bool TryGetEscapedDateTimeOffset(ReadOnlySpan<byte> source, out DateTimeOffset value); public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out Guid value); public static bool TryGetEscapedGuid(ReadOnlySpan<byte> source, out Guid value); public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out Half value); public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out float value); public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out double value); public static bool TryGetUnescapedBase64Bytes(ReadOnlySpan<byte> utf8Source, out byte[] bytes); public static string GetUnescapedString(ReadOnlySpan<byte> utf8Source); public static byte[] GetUnescaped(ReadOnlySpan<byte> utf8Source); public static bool UnescapeAndCompare(ReadOnlySpan<byte> utf8Source, ReadOnlySpan<byte> other); public static bool UnescapeAndCompare(ReadOnlySequence<byte> utf8Source, ReadOnlySpan<byte> other); public static bool UnescapeAndCompareBothInputs(ReadOnlySpan<byte> utf8Source1, ReadOnlySpan<byte> utf8Source2); public static bool TryDecodeBase64InPlace(Span<byte> utf8Unescaped, out byte[] bytes); public static bool TryDecodeBase64(ReadOnlySpan<byte> utf8Unescaped, out byte[] bytes); public static string TranscodeHelper(ReadOnlySpan<byte> utf8Unescaped); public static int TranscodeHelper(ReadOnlySpan<byte> utf8Unescaped, Span<char> destination); public static void ValidateUtf8(ReadOnlySpan<byte> utf8Buffer); public static int IndexOfQuoteOrAnyControlOrBackSlash(this ReadOnlySpan<byte> span); } }