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

Function EncodeUntaggedBox2DValue

pkg/util/encoding/encoding.go:2701–2707  ·  view source on GitHub ↗

EncodeUntaggedBox2DValue encodes a geopb.BoundingBox value, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, b geopb.BoundingBox)

Source from the content-addressed store, hash-verified

2699// EncodeUntaggedBox2DValue encodes a geopb.BoundingBox value, appends it to the supplied buffer,
2700// and returns the final buffer.
2701func EncodeUntaggedBox2DValue(appendTo []byte, b geopb.BoundingBox) ([]byte, error) {
2702 appendTo = EncodeFloatAscending(appendTo, b.LoX)
2703 appendTo = EncodeFloatAscending(appendTo, b.HiX)
2704 appendTo = EncodeFloatAscending(appendTo, b.LoY)
2705 appendTo = EncodeFloatAscending(appendTo, b.HiY)
2706 return appendTo, nil
2707}
2708
2709// EncodeGeoValue encodes a geopb.SpatialObject value with its value tag, appends it to
2710// the supplied buffer, and returns the final buffer.

Callers 1

EncodeBox2DValueFunction · 0.85

Calls 1

EncodeFloatAscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…