(key: &[u8; 16])
| 944 | /// Decode a `(provenance_id, seq)` pair from 16 bytes. |
| 945 | #[inline] |
| 946 | pub fn decode_session_event_key(key: &[u8; 16]) -> (u64, u64) { |
| 947 | let provenance_id = u64::from_be_bytes(key[0..8].try_into().unwrap()); |
| 948 | let seq = u64::from_be_bytes(key[8..16].try_into().unwrap()); |
| 949 | (provenance_id, seq) |
| 950 | } |
| 951 | |
| 952 | /// Encode a `(provenance_id, todo_id_hash)` pair as 16 bytes for `SESSION_TODOS`. |
| 953 | /// |