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

Function EncodeUntaggedDurationValue

pkg/util/encoding/encoding.go:1957–1961  ·  view source on GitHub ↗

EncodeUntaggedDurationValue encodes a duration.Duration value, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, d duration.Duration)

Source from the content-addressed store, hash-verified

1955// EncodeUntaggedDurationValue encodes a duration.Duration value, appends it to the
1956// supplied buffer, and returns the final buffer.
1957func EncodeUntaggedDurationValue(appendTo []byte, d duration.Duration) []byte {
1958 appendTo = EncodeNonsortingStdlibVarint(appendTo, d.Months)
1959 appendTo = EncodeNonsortingStdlibVarint(appendTo, d.Days)
1960 return EncodeNonsortingStdlibVarint(appendTo, d.Nanos())
1961}
1962
1963// EncodeBitArrayValue encodes a bit array value with its value tag,
1964// appends it to the supplied buffer, and returns the final buffer.

Callers 1

EncodeDurationValueFunction · 0.85

Calls 2

NanosMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…