(slice: &[u8], offset: u64)
| 493 | } |
| 494 | |
| 495 | fn verify_valid(slice: &[u8], offset: u64) -> Result<(), MmapedParseError> { |
| 496 | if offset >= slice.len() as u64 { |
| 497 | return Err(MmapedParseError::OffsetTooLarge); |
| 498 | } |
| 499 | Ok(()) |
| 500 | } |
| 501 | } |
| 502 | |
| 503 | /// A map for loose and other non-packed object IDs that maps between a storage and compatibility |