(&self, key: &[u8; 12])
| 2343 | } |
| 2344 | |
| 2345 | fn get_crdt_leaf(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedLeaf>> { |
| 2346 | let table = self.txn.open_table(LEAVES)?; |
| 2347 | let result = match table.get(key)? { |
| 2348 | Some(guard) => { |
| 2349 | let bytes: [u8; 22] = *guard.value(); |
| 2350 | Some(decode_leaf_value(&bytes)) |
| 2351 | } |
| 2352 | None => None, |
| 2353 | }; |
| 2354 | Ok(result) |
| 2355 | } |
| 2356 | |
| 2357 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 2358 | use crate::crdt::tables::decode_trunk_id; |
nothing calls this directly
no test coverage detected