MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / DecodeDurationValue

Function DecodeDurationValue

pkg/util/encoding/encoding.go:3097–3103  ·  view source on GitHub ↗

DecodeDurationValue decodes a value encoded by EncodeUntaggedDurationValue.

(b []byte)

Source from the content-addressed store, hash-verified

3095
3096// DecodeDurationValue decodes a value encoded by EncodeUntaggedDurationValue.
3097func 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.
3106func DecodeUntaggedDurationValue(b []byte) (remaining []byte, d duration.Duration, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…