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

Function isPrimitiveArrayType

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

Source from the content-addressed store, hash-verified

231}
232
233func isPrimitiveArrayType(typeID TypeId) bool {
234 switch typeID {
235 case BOOL_ARRAY,
236 INT8_ARRAY,
237 INT16_ARRAY,
238 INT32_ARRAY,
239 INT64_ARRAY,
240 UINT8_ARRAY,
241 UINT16_ARRAY,
242 UINT32_ARRAY,
243 UINT64_ARRAY,
244 FLOAT8_ARRAY,
245 FLOAT16_ARRAY,
246 BFLOAT16_ARRAY,
247 FLOAT32_ARRAY,
248 FLOAT64_ARRAY:
249 return true
250 default:
251 return false
252 }
253}
254
255var primitiveTypeSizes = map[TypeId]int{
256 BOOL: 1,

Callers 5

registerSerializerMethod · 0.85
initFieldsFromTypeDefMethod · 0.85
computeHashMethod · 0.85
serializerForTypeSpecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected