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

Function EncodeFloat64

primitive.go:154–157  ·  view source on GitHub ↗
(d float64)

Source from the content-addressed store, hash-verified

152}
153
154func EncodeFloat64(d float64) scode.Bytes {
155 var b [8]byte
156 return AppendFloat64(b[:0], d)
157}
158
159func DecodeFloat64(zv scode.Bytes) float64 {
160 return math.Float64frombits(binary.LittleEndian.Uint64(zv))

Callers 8

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

Calls 1

AppendFloat64Function · 0.85

Tested by

no test coverage detected