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

Function DecodeUntaggedBytesValue

pkg/util/encoding/encoding.go:2125–2132  ·  view source on GitHub ↗

DecodeUntaggedBytesValue decodes a value encoded by EncodeUntaggedBytesValue.

(b []byte)

Source from the content-addressed store, hash-verified

2123
2124// DecodeUntaggedBytesValue decodes a value encoded by EncodeUntaggedBytesValue.
2125func DecodeUntaggedBytesValue(b []byte) (remaining, data []byte, err error) {
2126 var i uint64
2127 b, _, i, err = DecodeNonsortingUvarint(b)
2128 if err != nil {
2129 return b, nil, err
2130 }
2131 return b[int(i):], b[:int(i)], nil
2132}
2133
2134// DecodeTimeValue decodes a value encoded by EncodeTimeValue.
2135func DecodeTimeValue(b []byte) (remaining []byte, t time.Time, err error) {

Callers 1

DecodeBytesValueFunction · 0.85

Calls 1

DecodeNonsortingUvarintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…