点击或拖拽改变大小

HslReflectionHelperPraseStructContent 方法 (Object, Byte, Int32, IByteTransform)

根据结构体的定义,将原始字节的数据解析出来,然后赋值给对应的对象,该对象的属性需要支持特性 HslStructAttribute 才支持设置

命名空间:  HslCommunication.Reflection
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static void PraseStructContent(
	Object obj,
	byte[] buffer,
	int startIndex,
	IByteTransform byteTransform
)

参数

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