点击或拖拽改变大小

HslStructAttribute 属性

HslStructAttribute 类型公开以下成员。

属性
  名称说明
公共属性Encoding
编码信息,如果是字符串类型,则表示字符串的编码信息,可选 ASCII UNICODE UTF8 GB2312 ANSI BIG-UNICODE
Encoding information. If it is a string, it indicates the encoding information of a string. The option is ASCII UNICODE UTF8 GB2312 ANSI BIG-UNICODE
公共属性Index
字节偏移字节信息,如果是bool,就是位偏移地址,按照位为单位
Byte offset Indicates the byte information. If the value is bool, it is the address of the bit offset. The unit is bits
公共属性Length
长度信息,如果是普通类型,则表示数组,如果是字符串,则表示字符串占用的最大字节长度
Length information, if a common type, represents an array, if a string, represents the maximum length of bytes taken by the string
公共属性StringMode
字符串的解析模式,0:默认没有字节头 1: 一个头子节,表示长度,2: 两个头子节,最大字符数和实际字符数,3: 两个字节头,实际字符数,4: 四个头字节,最大字符数和实际字符数,5: 四个头字节,字符串实际长度
Parsing mode of the string, 0: default byte header 1: one head section, indicating the length, 2: two head sections, maximum number of characters and actual number of characters, 3: two head bytes, actual number of characters, 4: four head bytes, maximum number of characters and actual number of characters, 5: four head bytes, actual length of the string
公共属性TypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(继承自 Attribute。)
Top
参见