点击或拖拽改变大小

HslReflectionHelperPraseStructContentT 方法 (Byte, Int32, IByteTransform)

根据类型信息,直接从原始字节解析出类型对象,然后赋值给对应的对象,该对象的属性需要支持特性 HslStructAttribute 才支持设置

命名空间:  HslCommunication.Reflection
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static T PraseStructContent<T>(
	byte[] buffer,
	int startIndex,
	IByteTransform byteTransform
)
where T : class, new()

参数

buffer
类型:SystemByte
缓存信息
startIndex
类型:SystemInt32
起始偏移地址
byteTransform
类型:HslCommunication.CoreIByteTransform
数据变换规则对象

类型参数

T
类型信息

返回值

类型:T
新的实例化的类型对象
参见