MCPcopy Index your code
hub / github.com/tinylib/msgp / rwFloat32Bytes

Function rwFloat32Bytes

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

Source from the content-addressed store, hash-verified

250}
251
252func rwFloat32Bytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
253 var f float32
254 var err error
255 f, msg, err = ReadFloat32Bytes(msg)
256 if err != nil {
257 return msg, scratch, err
258 }
259 scratch = strconv.AppendFloat(scratch[:0], float64(f), 'f', -1, 32)
260 _, err = w.Write(scratch)
261 return msg, scratch, err
262}
263
264func rwFloat64Bytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
265 var f float64

Callers

nothing calls this directly

Calls 2

ReadFloat32BytesFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…