一款简单易用的基础网络通讯组件库。

ShortDataPartition 类

存储short类型的数据区

Definition

命名空间: TouchSocket.Modbus
程序集: TouchSocketPro.Modbus (在 TouchSocketPro.Modbus.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public sealed class ShortDataPartition : DataPartition<short>
Inheritance
Object    DataPartitionInt16    ShortDataPartition

构造函数

ShortDataPartition(Int32, Int16) 存储short类型的数据区
ShortDataPartition(Int32, Int32) 存储short类型的数据区

属性

LockSlim 读写锁
(继承自 DataPartitionT。)
Quantity 数量
(继承自 DataPartitionT。)
StartingAddress 起始位置
(继承自 DataPartitionT。)
Values
(继承自 DataPartitionT。)

方法

EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
Read 读取
(重写 DataPartitionTRead(Int32, Int32))
ToStringReturns a string that represents the current object.
(继承自 Object。)
Write(Int32, Int16) 写入单个数据
(重写 DataPartitionTWrite(Int32, T))
Write(Int32, Int16) 写入多个数据
(重写 DataPartitionTWrite(Int32, T))

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见