Encode a coordinate vector into a stable byte key for HashMap / HashSet use. Uses the same zerompk encoding as the write path so keys are comparable across tile-versions.
(coord: &[CoordValue])
| 46 | /// Uses the same zerompk encoding as the write path so keys are comparable |
| 47 | /// across tile-versions. |
| 48 | pub fn encode_coord_key(coord: &[CoordValue]) -> ArrayResult<Vec<u8>> { |
| 49 | let owned = coord.to_vec(); |
| 50 | zerompk::to_msgpack_vec(&owned).map_err(|e| ArrayError::SegmentCorruption { |
| 51 | detail: format!("encode_coord_key: {e}"), |
| 52 | }) |
| 53 | } |
| 54 | |
| 55 | // ── Row iteration helper ───────────────────────────────────────────────────── |
| 56 |
no test coverage detected