(key: &[u8; 16])
| 439 | /// Decode a `(provenance_id, seq)` pair from 16 bytes. |
| 440 | #[inline] |
| 441 | pub fn decode_session_event_key(key: &[u8; 16]) -> (u64, u64) { |
| 442 | let provenance_id = u64::from_be_bytes(key[0..8].try_into().unwrap()); |
| 443 | let seq = u64::from_be_bytes(key[8..16].try_into().unwrap()); |
| 444 | (provenance_id, seq) |
| 445 | } |
| 446 | |
| 447 | /// Encode a `(provenance_id, todo_id_hash)` pair as 16 bytes for `SESSION_TODOS`. |
| 448 | /// |