コード例 #1
0
ファイル: EndianessChecker.cs プロジェクト: CheneyWu/coreclr
        public static bool IsLittleEndian()
        {
            EndianessChecker check = new EndianessChecker();

            check.myByte = 1;
            return (check.myInt == 16777216);
        }
コード例 #2
0
        public static bool IsLittleEndian()
        {
            EndianessChecker check = new EndianessChecker();

            check.myByte = 1;
            return(check.myInt == 16777216);
        }
コード例 #3
0
ファイル: EndianessChecker.cs プロジェクト: CheneyWu/coreclr
        public static bool IsBigEndian()
        {
            EndianessChecker check = new EndianessChecker();

            check.myByte = 1;
            return (check.myInt == 1);
        }
コード例 #4
0
        public static bool IsBigEndian()
        {
            EndianessChecker check = new EndianessChecker();

            check.myByte = 1;
            return(check.myInt == 1);
        }