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

Function EncodeDurationValue

pkg/util/encoding/encoding.go:1950–1953  ·  view source on GitHub ↗

EncodeDurationValue encodes a duration.Duration value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colID uint32, d duration.Duration)

Source from the content-addressed store, hash-verified

1948// EncodeDurationValue encodes a duration.Duration value with its value tag,
1949// appends it to the supplied buffer, and returns the final buffer.
1950func EncodeDurationValue(appendTo []byte, colID uint32, d duration.Duration) []byte {
1951 appendTo = EncodeValueTag(appendTo, colID, Duration)
1952 return EncodeUntaggedDurationValue(appendTo, d)
1953}
1954
1955// EncodeUntaggedDurationValue encodes a duration.Duration value, appends it to the
1956// supplied buffer, and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…