Skip to main content

detect_mountable_image

Function detect_mountable_image 

Source
pub fn detect_mountable_image(bytes: &[u8]) -> Option<MountableImageKind>
Expand description

Sniff a decompressed payload for “is this a disk image the Inspect tab can mount and partition-walk?” Tries DiskCopy 4.2 first (header at offset 0 plus size match), then raw HFS / HFS+ (MDB signature at byte 1024 — the BasiliskII HFV layout and the Apple_HFS partition layout share this offset).