(&self, key: &[u8; 12])
| 1706 | } |
| 1707 | |
| 1708 | fn get_crdt_branch(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedBranch>> { |
| 1709 | let table = self.txn.open_table(BRANCHES)?; |
| 1710 | let result = match table.get(key)? { |
| 1711 | Some(guard) => { |
| 1712 | let bytes: [u8; 24] = *guard.value(); |
| 1713 | Some(decode_branch_value(&bytes)) |
| 1714 | } |
| 1715 | None => None, |
| 1716 | }; |
| 1717 | Ok(result) |
| 1718 | } |
| 1719 | |
| 1720 | fn get_crdt_branch_after(&self, branch_key: &[u8; 12]) -> PristineResult<Option<[u8; 12]>> { |
| 1721 | let table = self.txn.open_table(BRANCH_AFTER)?; |
nothing calls this directly
no test coverage detected