EncodeUntaggedBox2DValue encodes a geopb.BoundingBox value, appends it to the supplied buffer, and returns the final buffer.
(appendTo []byte, b geopb.BoundingBox)
| 2699 | // EncodeUntaggedBox2DValue encodes a geopb.BoundingBox value, appends it to the supplied buffer, |
| 2700 | // and returns the final buffer. |
| 2701 | func 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. |
no test coverage detected
searching dependent graphs…