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

Function DecodeDurationValue

pkg/util/encoding/encoding.go:2216–2222  ·  view source on GitHub ↗

DecodeDurationValue decodes a value encoded by EncodeUntaggedDurationValue.

(b []byte)

Source from the content-addressed store, hash-verified

2214
2215// DecodeDurationValue decodes a value encoded by EncodeUntaggedDurationValue.
2216func 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.
2225func 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…