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

Function rwFloat32

msgp/json.go:242–249  ·  view source on GitHub ↗
(dst jsWriter, src *Reader)

Source from the content-addressed store, hash-verified

240}
241
242func rwFloat32(dst jsWriter, src *Reader) (int, error) {
243 f, err := src.ReadFloat32()
244 if err != nil {
245 return 0, err
246 }
247 src.scratch = strconv.AppendFloat(src.scratch[:0], float64(f), 'f', -1, 32)
248 return dst.Write(src.scratch)
249}
250
251func rwFloat64(dst jsWriter, src *Reader) (int, error) {
252 f, err := src.ReadFloat64()

Callers

nothing calls this directly

Calls 2

ReadFloat32Method · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…