HslHelperReadCuttingAsyncHelperT 方法 |
根据地址的临界条件来切割读取地址的方法,支持bool地址的切割,支持字地址的切割
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<T[]>> ReadCuttingAsyncHelper<T>(
Func<string, ushort, Task<OperateResult<T[]>>> readFunc,
List<CuttingAddress> cuttings,
string address,
ushort length
)
Public Shared Function ReadCuttingAsyncHelper(Of T) (
readFunc As Func(Of String, UShort, Task(Of OperateResult(Of T()))),
cuttings As List(Of CuttingAddress),
address As String,
length As UShort
) As Task(Of OperateResult(Of T()))
public:
generic<typename T>
static Task<OperateResult<array<T>^>^>^ ReadCuttingAsyncHelper(
Func<String^, unsigned short, Task<OperateResult<array<T>^>^>^>^ readFunc,
List<CuttingAddress^>^ cuttings,
String^ address,
unsigned short length
)
static member ReadCuttingAsyncHelper :
readFunc : Func<string, uint16, Task<OperateResult<'T[]>>> *
cuttings : List<CuttingAddress> *
address : string *
length : uint16 -> Task<OperateResult<'T[]>>
参数
- readFunc
- 类型:SystemFuncString, UInt16, TaskOperateResultT
读取的功能方法 - cuttings
- 类型:System.Collections.GenericListCuttingAddress
切割的地址信息 - address
- 类型:SystemString
实际的数据地址 - length
- 类型:SystemUInt16
读取的长度信息
类型参数
- T
- 数据的类型信息
返回值
类型:
TaskOperateResultT使用底层的读取机制来实现真正的读取操作
参见