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

Function EncodeBox2DDescending

pkg/util/encoding/encoding.go:1287–1294  ·  view source on GitHub ↗

EncodeBox2DDescending encodes a bounding box in descending order.

(b []byte, box geopb.BoundingBox)

Source from the content-addressed store, hash-verified

1285
1286// EncodeBox2DDescending encodes a bounding box in descending order.
1287func EncodeBox2DDescending(b []byte, box geopb.BoundingBox) ([]byte, error) {
1288 b = append(b, box2DMarker)
1289 b = EncodeFloatDescending(b, box.LoX)
1290 b = EncodeFloatDescending(b, box.HiX)
1291 b = EncodeFloatDescending(b, box.LoY)
1292 b = EncodeFloatDescending(b, box.HiY)
1293 return b, nil
1294}
1295
1296// DecodeBox2DAscending decodes a box2D object in ascending order.
1297func DecodeBox2DAscending(b []byte) ([]byte, geopb.BoundingBox, error) {

Callers

nothing calls this directly

Calls 1

EncodeFloatDescendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…