(&self, key: &[u8; 12])
| 1724 | } |
| 1725 | |
| 1726 | fn get_crdt_leaf(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedLeaf>> { |
| 1727 | let table = self.txn.open_table(LEAVES)?; |
| 1728 | let result = match table.get(key)? { |
| 1729 | Some(guard) => { |
| 1730 | let bytes: [u8; 22] = *guard.value(); |
| 1731 | Some(decode_leaf_value(&bytes)) |
| 1732 | } |
| 1733 | None => None, |
| 1734 | }; |
| 1735 | Ok(result) |
| 1736 | } |
| 1737 | |
| 1738 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1739 | use crate::crdt::tables::decode_trunk_id; |
nothing calls this directly
no test coverage detected