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