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

Function needsElemTypeInfo

go/fory/slice.go:34–41  ·  view source on GitHub ↗
(typeID TypeId)

Source from the content-addressed store, hash-verified

32)
33
34func needsElemTypeInfo(typeID TypeId) bool {
35 switch typeID {
36 case STRUCT, COMPATIBLE_STRUCT, NAMED_STRUCT, NAMED_COMPATIBLE_STRUCT, EXT, NAMED_EXT:
37 return true
38 default:
39 return false
40 }
41}
42
43// writeSliceRefAndType handles reference and type writing for slice serializers.
44// Returns true if the value was already written (nil or ref), false if data should be written.

Callers 2

writeHeaderMethod · 0.85
writeDataWithGenericsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected