(type_index, parent_index uint32, flags_config *FlagsConfig)
| 213 | var PermissionFlagsConfig = &FlagsConfig{"permission", FORMAT_OCT, PermissionFlags} |
| 214 | |
| 215 | func RegisterFlagsConfig(type_index, parent_index uint32, flags_config *FlagsConfig) IArgType { |
| 216 | p := GetArgType(parent_index) |
| 217 | new_name := fmt.Sprintf("%s_flags_%s", p.GetName(), flags_config.Name) |
| 218 | new_p := RegisterPre(new_name, type_index, p.GetTypeIndex()) |
| 219 | new_i, ok := (new_p).(IArgTypeNum) |
| 220 | if !ok { |
| 221 | panic("...") |
| 222 | } |
| 223 | new_i.SetFlagsConfig(flags_config) |
| 224 | return new_p |
| 225 | } |
| 226 | |
| 227 | func NewNumFlags(parent_index uint32, flags_config *FlagsConfig) IArgType { |
| 228 | p := GetArgType(parent_index) |
no test coverage detected