HslStructAttribute 构造函数 (Int32, Int32, Int32) |
指定偏移地址和长度信息,bool解析模式来实例化一个对象
Specify offset address and length information to instantiate an object
命名空间:
HslCommunication.Reflection
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.9.1.0 (12.9.1.0)
语法public HslStructAttribute(
int index,
int length,
int boolMode
)
Public Sub New (
index As Integer,
length As Integer,
boolMode As Integer
)
public:
HslStructAttribute(
int index,
int length,
int boolMode
)
new :
index : int *
length : int *
boolMode : int -> HslStructAttribute参数
- index
- 类型:SystemInt32
字节偏移字节信息,如果是bool,就是位偏移地址,按照位为单位 - length
- 类型:SystemInt32
长度信息,如果是普通类型,则表示数组 - boolMode
- 类型:SystemInt32
bool类型解析模式, 0: 默认字节顺序 1: 按字反转之后再解析bool值
参见