EncodeFloatDescending is the descending version of EncodeFloatAscending.
(b []byte, f float64)
| 55 | |
| 56 | // EncodeFloatDescending is the descending version of EncodeFloatAscending. |
| 57 | func EncodeFloatDescending(b []byte, f float64) []byte { |
| 58 | if math.IsNaN(f) { |
| 59 | return append(b, floatNaNDesc) |
| 60 | } |
| 61 | return EncodeFloatAscending(b, -f) |
| 62 | } |
| 63 | |
| 64 | // DecodeFloatAscending returns the remaining byte slice after decoding and the decoded |
| 65 | // float64 from buf. |
nothing calls this directly
no test coverage detected
searching dependent graphs…