iotgateway/Plugins/PluginInterface/EndianEnum.cs
MysticBoy b5e3afe40d
ModBus 优化和大小端 (#35)
* 1. 使用枚举直接对比性能更好。
2. 初步加入大小端转换

* 忽略本地sqlite文件等。

* 修改大小端
2022-12-06 16:01:32 +08:00

20 lines
443 B
C#

using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;
namespace PluginInterface
{
public enum EndianEnum
{
[Display(Name = "无")]
None,
[Display(Name = "大端")]
BigEndian,
[Display(Name = "小端")]
LittleEndian,
[Display(Name = "大端交换")]
BigEndianSwap,
[Display(Name = "小端交换")]
LittleEndianSwap
}
}