System.Xml.Ucs4Decoder.UnicodeToUTF16 C# (CSharp) Méthode

UnicodeToUTF16() private méthode

private UnicodeToUTF16 ( uint code ) : char
code uint
Résultat char
        internal char UnicodeToUTF16( uint code) {
            byte lowerByte, higherByte;
            lowerByte = (byte)( 0xD7C0 + ( code >> 10 ) );
            higherByte = (byte)( 0xDC00 | code & 0x3ff );
            return ( (char)( ( higherByte << 8 ) | lowerByte ) );
        }
    }