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

Function EncodeFloat32

primitive.go:131–134  ·  view source on GitHub ↗
(d float32)

Source from the content-addressed store, hash-verified

129}
130
131func EncodeFloat32(d float32) scode.Bytes {
132 var b [4]byte
133 return AppendFloat32(b[:0], d)
134}
135
136func DecodeFloat32(zb scode.Bytes) float32 {
137 return math.Float32frombits(binary.LittleEndian.Uint32(zb))

Callers 6

SerializeMethod · 0.92
encodeAnyMethod · 0.92
BuildPrimitiveFunction · 0.92
GenValueFunction · 0.92
buildScodeMethod · 0.92
BytesMethod · 0.85

Calls 1

AppendFloat32Function · 0.85

Tested by

no test coverage detected