(f float64)
| 328 | } |
| 329 | |
| 330 | func (enc *Encoder) writeFloat64(f float64) error { |
| 331 | bin := math.Float64bits(f) |
| 332 | binary.LittleEndian.PutUint64(enc.buffer, bin) |
| 333 | return enc.write(enc.buffer) |
| 334 | } |
| 335 | |
| 336 | // a string might be encoded as an integer, but only subset (aka uint32) of the number set |
| 337 | // can be encoded and then decoded back. |
no test coverage detected