(&self, key: &[u8; 12])
| 2321 | } |
| 2322 | |
| 2323 | fn get_crdt_leaf(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedLeaf>> { |
| 2324 | let table = self.txn.open_table(LEAVES)?; |
| 2325 | let result = match table.get(key)? { |
| 2326 | Some(guard) => { |
| 2327 | let bytes: [u8; 22] = *guard.value(); |
| 2328 | Some(decode_leaf_value(&bytes)) |
| 2329 | } |
| 2330 | None => None, |
| 2331 | }; |
| 2332 | Ok(result) |
| 2333 | } |
| 2334 | |
| 2335 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 2336 | use crate::crdt::tables::decode_trunk_id; |
nothing calls this directly
no test coverage detected