EncodeBox2DDescending encodes a bounding box in descending order.
(b []byte, box geopb.BoundingBox)
| 1285 | |
| 1286 | // EncodeBox2DDescending encodes a bounding box in descending order. |
| 1287 | func 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. |
| 1297 | func DecodeBox2DAscending(b []byte) ([]byte, geopb.BoundingBox, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…