| 37 | type ParseFN func(IArgType, uint64, *bytes.Buffer, bool) string |
| 38 | |
| 39 | type ArgType struct { |
| 40 | // 类型的名称 |
| 41 | Name string |
| 42 | // 类型的预定义索引标识 一个类型可以附加其他的内容 比如结果解析时的输出形式 |
| 43 | // 又或者读取操作涉及到的大小不一样 所以这个是可以相同的 |
| 44 | // Alias uint32 |
| 45 | BaseType uint32 |
| 46 | // 类型的唯一索引标识 用于取出实际类型 |
| 47 | TypeIndex uint32 |
| 48 | ParentIndex uint32 |
| 49 | // 类型的大小 类似于 sizeof |
| 50 | Size uint32 |
| 51 | OpList []uint32 |
| 52 | // 可选的别名 |
| 53 | AliaNames []string |
| 54 | ParseCB ParseFN |
| 55 | ParseImpl IParseStruct |
| 56 | DumpHex bool |
| 57 | Color bool |
| 58 | } |
| 59 | |
| 60 | func (this *ArgType) Init(name string, base_type, type_index, size uint32) { |
| 61 | this.Name = name |
nothing calls this directly
no outgoing calls
no test coverage detected