DecodeFloatValue decodes a value encoded by EncodeFloatValue.
(b []byte)
| 2095 | |
| 2096 | // DecodeFloatValue decodes a value encoded by EncodeFloatValue. |
| 2097 | func DecodeFloatValue(b []byte) (remaining []byte, f float64, err error) { |
| 2098 | b, err = decodeValueTypeAssert(b, Float) |
| 2099 | if err != nil { |
| 2100 | return b, 0, err |
| 2101 | } |
| 2102 | return DecodeUntaggedFloatValue(b) |
| 2103 | } |
| 2104 | |
| 2105 | // DecodeUntaggedFloatValue decodes a value encoded by EncodeUntaggedFloatValue. |
| 2106 | func DecodeUntaggedFloatValue(b []byte) (remaining []byte, f float64, err error) { |
no test coverage detected
searching dependent graphs…