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

Function isUserDefinedType

go/fory/types.go:294–306  ·  view source on GitHub ↗
(typeID TypeId)

Source from the content-addressed store, hash-verified

292}
293
294func isUserDefinedType(typeID TypeId) bool {
295 return typeID == STRUCT ||
296 typeID == COMPATIBLE_STRUCT ||
297 typeID == NAMED_STRUCT ||
298 typeID == NAMED_COMPATIBLE_STRUCT ||
299 typeID == EXT ||
300 typeID == NAMED_EXT ||
301 typeID == ENUM ||
302 typeID == NAMED_ENUM ||
303 typeID == UNION ||
304 typeID == TYPED_UNION ||
305 typeID == NAMED_UNION
306}
307
308// ============================================================================
309// DispatchId for switch-based fast path (avoids interface virtual method cost)

Callers 2

computeHashMethod · 0.85
sortFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected