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

Function AppendFloat32

msgp/write_bytes.go:83–87  ·  view source on GitHub ↗

AppendFloat32 appends a float32 to the slice

(b []byte, f float32)

Source from the content-addressed store, hash-verified

81
82// AppendFloat32 appends a float32 to the slice
83func AppendFloat32(b []byte, f float32) []byte {
84 o, n := ensure(b, Float32Size)
85 prefixu32(o[n:], mfloat32, math.Float32bits(f))
86 return o
87}
88
89// AppendDuration appends a time.Duration to the slice
90func AppendDuration(b []byte, d time.Duration) []byte {

Callers 11

MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.85
BenchmarkReadFloat32Function · 0.85
AppendFloatFunction · 0.85
AppendIntfFunction · 0.85
TestAppendFloat32Function · 0.85
BenchmarkAppendFloat32Function · 0.85

Calls 2

prefixu32Function · 0.85
ensureFunction · 0.70

Tested by 6

BenchmarkReadFloat32Function · 0.68
TestAppendFloat32Function · 0.68
BenchmarkAppendFloat32Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…