(&self, key: &[u8; 12])
| 1185 | } |
| 1186 | |
| 1187 | fn get_crdt_branch(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedBranch>> { |
| 1188 | let table = self.txn.open_table(BRANCHES)?; |
| 1189 | let result = match table.get(key)? { |
| 1190 | Some(guard) => { |
| 1191 | let bytes: [u8; 24] = *guard.value(); |
| 1192 | Some(decode_branch_value(&bytes)) |
| 1193 | } |
| 1194 | None => None, |
| 1195 | }; |
| 1196 | Ok(result) |
| 1197 | } |
| 1198 | |
| 1199 | fn get_crdt_branch_after(&self, branch_key: &[u8; 12]) -> PristineResult<Option<[u8; 12]>> { |
| 1200 | let table = self.txn.open_table(BRANCH_AFTER)?; |
nothing calls this directly
no test coverage detected