(&self, key: &[u8; 12])
| 1203 | } |
| 1204 | |
| 1205 | fn get_crdt_leaf(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedLeaf>> { |
| 1206 | let table = self.txn.open_table(LEAVES)?; |
| 1207 | let result = match table.get(key)? { |
| 1208 | Some(guard) => { |
| 1209 | let bytes: [u8; 22] = *guard.value(); |
| 1210 | Some(decode_leaf_value(&bytes)) |
| 1211 | } |
| 1212 | None => None, |
| 1213 | }; |
| 1214 | Ok(result) |
| 1215 | } |
| 1216 | |
| 1217 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1218 | use crate::crdt::tables::decode_trunk_id; |
nothing calls this directly
no test coverage detected