(w jsWriter, msg []byte, scratch []byte, depth int)
| 250 | } |
| 251 | |
| 252 | func 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 | |
| 264 | func rwFloat64Bytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) { |
| 265 | var f float64 |
nothing calls this directly
no test coverage detected
searching dependent graphs…