DecodeDurationValue decodes a value encoded by EncodeUntaggedDurationValue.
(b []byte)
| 3095 | |
| 3096 | // DecodeDurationValue decodes a value encoded by EncodeUntaggedDurationValue. |
| 3097 | func DecodeDurationValue(b []byte) (remaining []byte, d duration.Duration, err error) { |
| 3098 | b, err = decodeValueTypeAssert(b, Duration) |
| 3099 | if err != nil { |
| 3100 | return b, duration.Duration{}, err |
| 3101 | } |
| 3102 | return DecodeUntaggedDurationValue(b) |
| 3103 | } |
| 3104 | |
| 3105 | // DecodeUntaggedDurationValue decodes a value encoded by EncodeUntaggedDurationValue. |
| 3106 | func DecodeUntaggedDurationValue(b []byte) (remaining []byte, d duration.Duration, err error) { |
no test coverage detected
searching dependent graphs…