(key: &str)
| 787 | /// Decode an embedding key into (path, chunk_idx). |
| 788 | #[inline] |
| 789 | pub fn decode_embedding_key(key: &str) -> Option<(&str, u32)> { |
| 790 | let (path, idx_str) = key.split_once('\0')?; |
| 791 | let idx = idx_str.parse().ok()?; |
| 792 | Some((path, idx)) |
| 793 | } |
| 794 | |
| 795 | // V3 Change Storage Key Encoding |
| 796 |