(&self, key: &[u8; 12])
| 1676 | } |
| 1677 | |
| 1678 | fn get_crdt_leaf(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedLeaf>> { |
| 1679 | let table = self.txn.open_table(LEAVES)?; |
| 1680 | let result = match table.get(key)? { |
| 1681 | Some(guard) => { |
| 1682 | let bytes: [u8; 22] = *guard.value(); |
| 1683 | Some(decode_leaf_value(&bytes)) |
| 1684 | } |
| 1685 | None => None, |
| 1686 | }; |
| 1687 | Ok(result) |
| 1688 | } |
| 1689 | |
| 1690 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1691 | use crate::crdt::tables::decode_trunk_id; |
nothing calls this directly
no test coverage detected