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

Function DecodeUntaggedGeoValue

pkg/util/encoding/encoding.go:3060–3070  ·  view source on GitHub ↗

DecodeUntaggedGeoValue decodes a value encoded by EncodeUntaggedGeoValue into the provided geopb.SpatialObject reference. The so parameter must already be empty/reset.

(b []byte, so *geopb.SpatialObject)

Source from the content-addressed store, hash-verified

3058// the provided geopb.SpatialObject reference. The so parameter must already be
3059// empty/reset.
3060func DecodeUntaggedGeoValue(b []byte, so *geopb.SpatialObject) (remaining []byte, err error) {
3061 var data []byte
3062 remaining, data, err = DecodeUntaggedBytesValue(b)
3063 if err != nil {
3064 return b, err
3065 }
3066 // Not using protoutil.Unmarshal since the call to so.Reset() will waste the
3067 // pre-allocated EWKB.
3068 err = so.Unmarshal(data)
3069 return remaining, err
3070}
3071
3072// DecodeUntaggedDecimalValue decodes a value encoded by EncodeUntaggedDecimalValue.
3073func DecodeUntaggedDecimalValue(b []byte) (remaining []byte, d apd.Decimal, err error) {

Callers

nothing calls this directly

Calls 2

DecodeUntaggedBytesValueFunction · 0.85
UnmarshalMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…