Example #1
0
        public static bool TryReadChar(ref ReadOnlySpan <byte> remaining, out char result)
        {
            result = default;

            if (!TryReadUtf8Bytes(ref remaining, out var bytes))
            {
                return(false);
            }
            return(Utf8Reader.TryReadChar(ref bytes, out result));
        }