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

Function EncodeGeoValue

pkg/util/encoding/encoding.go:2711–2714  ·  view source on GitHub ↗

EncodeGeoValue encodes a geopb.SpatialObject value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colIDDelta uint32, so *geopb.SpatialObject)

Source from the content-addressed store, hash-verified

2709// EncodeGeoValue encodes a geopb.SpatialObject value with its value tag, appends it to
2710// the supplied buffer, and returns the final buffer.
2711func EncodeGeoValue(appendTo []byte, colIDDelta uint32, so *geopb.SpatialObject) ([]byte, error) {
2712 appendTo = EncodeValueTag(appendTo, colIDDelta, Geo)
2713 return EncodeUntaggedGeoValue(appendTo, so)
2714}
2715
2716// EncodeUntaggedGeoValue encodes a geopb.SpatialObject value, appends it to the supplied buffer,
2717// and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85
EncodeUntaggedGeoValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…