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

Function AppendFloat32

primitive.go:127–129  ·  view source on GitHub ↗
(zb scode.Bytes, f float32)

Source from the content-addressed store, hash-verified

125type TypeOfFloat32 struct{}
126
127func AppendFloat32(zb scode.Bytes, f float32) scode.Bytes {
128 return binary.LittleEndian.AppendUint32(zb, math.Float32bits(f))
129}
130
131func EncodeFloat32(d float32) scode.Bytes {
132 var b [4]byte

Callers 2

Float32Method · 0.92
EncodeFloat32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected