MCPcopy Create free account
hub / github.com/apache/fory / IsNamespacedType

Function IsNamespacedType

go/fory/types.go:145–152  ·  view source on GitHub ↗

IsNamespacedType checks whether the given type ID is a namespace type

(typeID TypeId)

Source from the content-addressed store, hash-verified

143
144// IsNamespacedType checks whether the given type ID is a namespace type
145func 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

Callers 7

registerSerializerMethod · 0.85
registerTypeMethod · 0.85
ReadMethod · 0.85
ReadMethod · 0.85
buildTypeDefFunction · 0.85
decodeTypeDefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected