(key: &str)
| 756 | /// Decode an embedding key into (path, chunk_idx). |
| 757 | #[inline] |
| 758 | pub fn decode_embedding_key(key: &str) -> Option<(&str, u32)> { |
| 759 | let (path, idx_str) = key.split_once('\0')?; |
| 760 | let idx = idx_str.parse().ok()?; |
| 761 | Some((path, idx)) |
| 762 | } |
| 763 | |
| 764 | // V3 Change Storage Key Encoding |
| 765 |