private TryReadCodePointByte ( byte nextByte, UnicodeCodePoint &codePoint ) : bool | ||
nextByte | byte | |
codePoint | UnicodeCodePoint | |
Résultat | 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;
}