(bytes: &[u8; PATH_CLAIM_EVENT_SIZE], offset: usize)
| 239 | } |
| 240 | |
| 241 | fn get_u64(bytes: &[u8; PATH_CLAIM_EVENT_SIZE], offset: usize) -> u64 { |
| 242 | let mut value = [0u8; 8]; |
| 243 | value.copy_from_slice(&bytes[offset..offset + 8]); |
| 244 | u64::from_be_bytes(value) |
| 245 | } |
| 246 | |
| 247 | #[cfg(test)] |
| 248 | mod tests { |
no outgoing calls
no test coverage detected