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

Function EncodeBox2DValue

pkg/util/encoding/encoding.go:2694–2697  ·  view source on GitHub ↗

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

(appendTo []byte, colIDDelta uint32, b geopb.BoundingBox)

Source from the content-addressed store, hash-verified

2692// EncodeBox2DValue encodes a geopb.BoundingBox with its value tag, appends it to
2693// the supplied buffer and returns the final buffer.
2694func EncodeBox2DValue(appendTo []byte, colIDDelta uint32, b geopb.BoundingBox) ([]byte, error) {
2695 appendTo = EncodeValueTag(appendTo, colIDDelta, Box2D)
2696 return EncodeUntaggedBox2DValue(appendTo, b)
2697}
2698
2699// EncodeUntaggedBox2DValue encodes a geopb.BoundingBox value, appends it to the supplied buffer,
2700// and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85
EncodeUntaggedBox2DValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…