(key: &str)
| 800 | /// Decode an embedding key into (path, chunk_idx). |
| 801 | #[inline] |
| 802 | pub fn decode_embedding_key(key: &str) -> Option<(&str, u32)> { |
| 803 | let (path, idx_str) = key.split_once('\0')?; |
| 804 | let idx = idx_str.parse().ok()?; |
| 805 | Some((path, idx)) |
| 806 | } |
| 807 | |
| 808 | // V3 Change Storage Key Encoding |
| 809 |