(&self, key: &[u8; 12])
| 1818 | } |
| 1819 | |
| 1820 | fn get_crdt_leaf(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedLeaf>> { |
| 1821 | let table = self.txn.open_table(LEAVES)?; |
| 1822 | let result = match table.get(key)? { |
| 1823 | Some(guard) => { |
| 1824 | let bytes: [u8; 22] = *guard.value(); |
| 1825 | Some(decode_leaf_value(&bytes)) |
| 1826 | } |
| 1827 | None => None, |
| 1828 | }; |
| 1829 | Ok(result) |
| 1830 | } |
| 1831 | |
| 1832 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1833 | use crate::crdt::tables::decode_trunk_id; |
nothing calls this directly
no test coverage detected