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

Function isNumericEncodingTypeID

go/fory/union.go:362–372  ·  view source on GitHub ↗
(typeID TypeId)

Source from the content-addressed store, hash-verified

360}
361
362func isNumericEncodingTypeID(typeID TypeId) bool {
363 switch typeID {
364 case INT32, VARINT32,
365 UINT32, VAR_UINT32,
366 INT64, VARINT64, TAGGED_INT64,
367 UINT64, VAR_UINT64, TAGGED_UINT64:
368 return true
369 default:
370 return false
371 }
372}
373
374func writeUnionDeclaredValue(ctx *WriteContext, info *unionCaseInfo, value reflect.Value) {
375 if !value.IsValid() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected