public static Int16 GetInt16WithEndianBit(this byte[] src, int index = 0, EndianBitType srcType = EndianBitType.LittleEndian) { UInt16 result = GetUInt16WithEndianBit(src, index, srcType); return(BytesN2Union.Create(result).sint16vluae); }
public static void ToBytesWithEndianBit(this Int16 inValue, byte[] des, int index = 0, EndianBitType desType = EndianBitType.LittleEndian) { UInt16 _convert = BytesN2Union.Create(inValue).GetValue(); ToBytesWithEndianBit(_convert, des, index, desType); }