MCPcopy
hub / github.com/tinylib/msgp / AppendFloat64

Function AppendFloat64

msgp/write_bytes.go:76–80  ·  view source on GitHub ↗

AppendFloat64 appends a float64 to the slice

(b []byte, f float64)

Source from the content-addressed store, hash-verified

74
75// AppendFloat64 appends a float64 to the slice
76func AppendFloat64(b []byte, f float64) []byte {
77 o, n := ensure(b, Float64Size)
78 prefixu64(o[n:], mfloat64, math.Float64bits(f))
79 return o
80}
81
82// AppendFloat32 appends a float32 to the slice
83func AppendFloat32(b []byte, f float32) []byte {

Callers 9

MarshalMsgMethod · 0.85
BenchmarkReadFloat64Function · 0.85
AppendFloatFunction · 0.85
AppendIntfFunction · 0.85
TestRawFunction · 0.85
TestAppendFloat64Function · 0.85
BenchmarkAppendFloat64Function · 0.85

Calls 2

prefixu64Function · 0.85
ensureFunction · 0.70

Tested by 6

BenchmarkReadFloat64Function · 0.68
TestRawFunction · 0.68
TestAppendFloat64Function · 0.68
BenchmarkAppendFloat64Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…