(key: &str)
| 747 | /// Decode an embedding key into (path, chunk_idx). |
| 748 | #[inline] |
| 749 | pub fn decode_embedding_key(key: &str) -> Option<(&str, u32)> { |
| 750 | let (path, idx_str) = key.split_once('\0')?; |
| 751 | let idx = idx_str.parse().ok()?; |
| 752 | Some((path, idx)) |
| 753 | } |
| 754 | |
| 755 | // V3 Change Storage Key Encoding |
| 756 |