System.Text.Utf8.Utf8Encoder.TryReadCodePointByte C# (CSharp) Method

TryReadCodePointByte() private method

private TryReadCodePointByte ( byte nextByte, UnicodeCodePoint &codePoint ) : bool
nextByte byte
codePoint UnicodeCodePoint
return bool
        private static bool TryReadCodePointByte(byte nextByte, ref UnicodeCodePoint codePoint)
        {
            uint current = nextByte;
            if ((current & b1100_0000U) != b1000_0000U)
                return false;

            codePoint = new UnicodeCodePoint((codePoint.Value << 6) | (b0011_1111U & current));
            return true;
        }