Esempio n. 1
0
        public static Int32 GetInt32WithEndianBit(this byte[] src, int index = 0, EndianBitType srcType = EndianBitType.LittleEndian)
        {
            UInt32 result = GetUInt32WithEndianBit(src, index, srcType);

            return(BytesN4Union.Create(result).sint32vluae);
        }
Esempio n. 2
0
        public static void ToBytesWithEndianBit(this Int32 inValue, byte[] des, int index = 0, EndianBitType desType = EndianBitType.LittleEndian)
        {
            UInt32 _convert = BytesN4Union.Create(inValue).GetValue();

            ToBytesWithEndianBit(_convert, des, index, desType);
        }