(values: &[CoordValue])
| 73 | const DICT_TAG_MSGPACK: u8 = 2; // per-value zerompk msgpack (string/mixed CoordValue) |
| 74 | |
| 75 | fn try_encode_int64_dict(values: &[CoordValue]) -> Option<Vec<i64>> { |
| 76 | let mut out = Vec::with_capacity(values.len()); |
| 77 | for v in values { |
| 78 | match v { |
| 79 | CoordValue::Int64(n) => out.push(*n), |
| 80 | _ => return None, |
| 81 | } |
| 82 | } |
| 83 | Some(out) |
| 84 | } |
| 85 | |
| 86 | /// Encode one axis of a `DimDict` into a byte vector. |
| 87 | pub fn encode_coord_axis(dict: &DimDict, out: &mut Vec<u8>) -> ArrayResult<()> { |
no test coverage detected