예제 #1
0
파일: NUtils.cs 프로젝트: MrxLoicx/Projects
        internal static unsafe ushort ToUInt16(byte[] value, int startIndex)
        {
            ushort num;

            BitConverterLE.UShortFromBytes((byte *)&num, value, startIndex);
            return(num);
        }
예제 #2
0
파일: NUtils.cs 프로젝트: MrxLoicx/Projects
        internal static unsafe char ToChar(byte[] value, int startIndex)
        {
            char ch;

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