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

Function floatMethod

javascript/packages/core/lib/gen/struct.ts:517–530  ·  view source on GitHub ↗
(prefix: string, localTypeId: number)

Source from the content-addressed store, hash-verified

515}
516
517function floatMethod(prefix: string, localTypeId: number): string | null {
518 switch (localTypeId) {
519 case TypeId.FLOAT16:
520 return `${prefix}16`;
521 case TypeId.BFLOAT16:
522 return `${prefix === "Float" ? "Bfloat" : "bfloat"}16`;
523 case TypeId.FLOAT32:
524 return `${prefix}32`;
525 case TypeId.FLOAT64:
526 return `${prefix}64`;
527 default:
528 return null;
529 }
530}
531
532function integerRangeFitsFloat(
533 remoteTypeId: number,

Callers 1

scalarToFloatExprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected