HslHelperSplitWriteDataT 方法 |
根据指定的长度切割数据数组,返回地址偏移量信息和数据分割信息
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<int[], List<T[]>> SplitWriteData<T>(
int address,
T[] value,
ushort segment,
int addressLength
)
Public Shared Function SplitWriteData(Of T) (
address As Integer,
value As T(),
segment As UShort,
addressLength As Integer
) As OperateResult(Of Integer(), List(Of T()))
public:
generic<typename T>
static OperateResult<array<int>^, List<array<T>^>^>^ SplitWriteData(
int address,
array<T>^ value,
unsigned short segment,
int addressLength
)
static member SplitWriteData :
address : int *
value : 'T[] *
segment : uint16 *
addressLength : int -> OperateResult<int[], List<'T[]>>
参数
- address
- 类型:SystemInt32
起始的地址 - value
- 类型:T
实际的数据信息 - segment
- 类型:SystemUInt16
分割的基本长度 - addressLength
- 类型:SystemInt32
一个地址代表的数据长度
类型参数
- T
- 数组类型
返回值
类型:
OperateResultInt32,
ListT切割结果内容
参见