(key: &[u8; 16])
| 200 | /// Decode a `(provenance_id, seq)` pair from 16 bytes. |
| 201 | #[inline] |
| 202 | pub fn decode_session_event_key(key: &[u8; 16]) -> (u64, u64) { |
| 203 | let provenance_id = u64::from_be_bytes(key[0..8].try_into().unwrap()); |
| 204 | let seq = u64::from_be_bytes(key[8..16].try_into().unwrap()); |
| 205 | (provenance_id, seq) |
| 206 | } |
| 207 | |
| 208 | /// Encode a `(provenance_id, todo_id_hash)` pair as 16 bytes for `SESSION_TODOS`. |
| 209 | /// |