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

Function rwFloat64

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

Source from the content-addressed store, hash-verified

249}
250
251func rwFloat64(dst jsWriter, src *Reader) (int, error) {
252 f, err := src.ReadFloat64()
253 if err != nil {
254 return 0, err
255 }
256 src.scratch = strconv.AppendFloat(src.scratch[:0], f, 'f', -1, 64)
257 return dst.Write(src.scratch)
258}
259
260func rwInt(dst jsWriter, src *Reader) (int, error) {
261 i, err := src.ReadInt64()

Callers

nothing calls this directly

Calls 2

ReadFloat64Method · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…