Exemple #1
0
        internal static unsafe ushort ToUInt16(byte[] value, int startIndex)
        {
            ushort num;

            BitConverterLE.UShortFromBytes((byte *)&num, value, startIndex);
            return(num);
        }
Exemple #2
0
        internal static unsafe char ToChar(byte[] value, int startIndex)
        {
            char ch;

            BitConverterLE.UShortFromBytes((byte *)&ch, value, startIndex);
            return(ch);
        }