IsNamespacedType checks whether the given type ID is a namespace type
(typeID TypeId)
| 143 | |
| 144 | // IsNamespacedType checks whether the given type ID is a namespace type |
| 145 | func IsNamespacedType(typeID TypeId) bool { |
| 146 | switch typeID { |
| 147 | case NAMED_EXT, NAMED_ENUM, NAMED_STRUCT, NAMED_COMPATIBLE_STRUCT, NAMED_UNION: |
| 148 | return true |
| 149 | default: |
| 150 | return false |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | // NeedsTypeMetaWrite checks whether a type needs additional type meta written after type ID |
| 155 | // This includes namespaced types and struct types that need meta share in compatible mode |
no outgoing calls
no test coverage detected