MCPcopy Create free account
hub / github.com/brimdata/super / DecodeFloat16

Function DecodeFloat16

primitive.go:113–115  ·  view source on GitHub ↗
(zb scode.Bytes)

Source from the content-addressed store, hash-verified

111}
112
113func DecodeFloat16(zb scode.Bytes) float32 {
114 return float16.Frombits(binary.LittleEndian.Uint16(zb)).Float32()
115}
116
117func (t *TypeOfFloat16) ID() int {
118 return IDFloat16

Callers 2

formatPrimitiveFunction · 0.92
buildArrowValueMethod · 0.92

Calls 1

Float32Method · 0.80

Tested by

no test coverage detected