MCPcopy Create free account
hub / github.com/git/git / verify_valid

Method verify_valid

src/loose.rs:495–500  ·  view source on GitHub ↗
(slice: &[u8], offset: u64)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected