DecodeDurationValue decodes a value encoded by EncodeUntaggedDurationValue.
(b []byte)
| 2214 | |
| 2215 | // DecodeDurationValue decodes a value encoded by EncodeUntaggedDurationValue. |
| 2216 | func DecodeDurationValue(b []byte) (remaining []byte, d duration.Duration, err error) { |
| 2217 | b, err = decodeValueTypeAssert(b, Duration) |
| 2218 | if err != nil { |
| 2219 | return b, duration.Duration{}, err |
| 2220 | } |
| 2221 | return DecodeUntaggedDurationValue(b) |
| 2222 | } |
| 2223 | |
| 2224 | // DecodeUntaggedDurationValue decodes a value encoded by EncodeUntaggedDurationValue. |
| 2225 | func DecodeUntaggedDurationValue(b []byte) (remaining []byte, d duration.Duration, err error) { |
no test coverage detected
searching dependent graphs…