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

Function rwFloat64Bytes

msgp/json_bytes.go:264–274  ·  view source on GitHub ↗
(w jsWriter, msg []byte, scratch []byte, depth int)

Source from the content-addressed store, hash-verified

262}
263
264func rwFloat64Bytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
265 var f float64
266 var err error
267 f, msg, err = ReadFloat64Bytes(msg)
268 if err != nil {
269 return msg, scratch, err
270 }
271 scratch = strconv.AppendFloat(scratch[:0], f, 'f', -1, 64)
272 _, err = w.Write(scratch)
273 return msg, scratch, err
274}
275
276func rwTimeBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
277 var t time.Time

Callers

nothing calls this directly

Calls 2

ReadFloat64BytesFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…