DecodeUntaggedFloatValue decodes a value encoded by EncodeUntaggedFloatValue.
(b []byte)
| 2104 | |
| 2105 | // DecodeUntaggedFloatValue decodes a value encoded by EncodeUntaggedFloatValue. |
| 2106 | func DecodeUntaggedFloatValue(b []byte) (remaining []byte, f float64, err error) { |
| 2107 | if len(b) < 8 { |
| 2108 | return b, 0, fmt.Errorf("float64 value should be exactly 8 bytes: %d", len(b)) |
| 2109 | } |
| 2110 | var i uint64 |
| 2111 | b, i, err = DecodeUint64Ascending(b) |
| 2112 | return b, math.Float64frombits(i), err |
| 2113 | } |
| 2114 | |
| 2115 | // DecodeBytesValue decodes a value encoded by EncodeBytesValue. |
| 2116 | func DecodeBytesValue(b []byte) (remaining []byte, data []byte, err error) { |
no test coverage detected
searching dependent graphs…