(&self, key: &[u8; 12])
| 1658 | } |
| 1659 | |
| 1660 | fn get_crdt_branch(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedBranch>> { |
| 1661 | let table = self.txn.open_table(BRANCHES)?; |
| 1662 | let result = match table.get(key)? { |
| 1663 | Some(guard) => { |
| 1664 | let bytes: [u8; 24] = *guard.value(); |
| 1665 | Some(decode_branch_value(&bytes)) |
| 1666 | } |
| 1667 | None => None, |
| 1668 | }; |
| 1669 | Ok(result) |
| 1670 | } |
| 1671 | |
| 1672 | fn get_crdt_branch_after(&self, branch_key: &[u8; 12]) -> PristineResult<Option<[u8; 12]>> { |
| 1673 | let table = self.txn.open_table(BRANCH_AFTER)?; |
nothing calls this directly
no test coverage detected