(key: &[u8; 16])
| 446 | /// Decode a `(provenance_id, seq)` pair from 16 bytes. |
| 447 | #[inline] |
| 448 | pub fn decode_session_event_key(key: &[u8; 16]) -> (u64, u64) { |
| 449 | let provenance_id = u64::from_be_bytes(key[0..8].try_into().unwrap()); |
| 450 | let seq = u64::from_be_bytes(key[8..16].try_into().unwrap()); |
| 451 | (provenance_id, seq) |
| 452 | } |
| 453 | |
| 454 | /// Encode a `(provenance_id, todo_id_hash)` pair as 16 bytes for `SESSION_TODOS`. |
| 455 | /// |