Expand description
Apple Partition Map (APM) reader.
Apple hybrid optical discs carry an Apple Partition Map so a Mac sees the
disc’s partitions (typically an Apple_HFS slice alongside the ISO 9660
filesystem). The layout (Inside Macintosh: Devices) is big-endian, in
fixed-size device blocks: block 0 is the Driver Descriptor Map (signature
ER, carrying the block size), and blocks 1.. are partition entries
(signature PM), the first of which reports how many entries the map holds.
This crate reads the map for detection and partition geometry (name,
type, start block, block count). Validated against a real hdiutil APM.
For forensic anomaly detection (overlaps, out-of-bounds, map-count
inconsistency, residual/hidden entries) see the apm-partition-forensic crate.
Structs§
- ApmPartition
- One Apple Partition Map entry.
- Apple
Partition Map - A parsed Apple Partition Map.
Enums§
- Error
- Crate-level error type. (Manual impl — no
thiserrordependency.)
Functions§
- parse
- Parse an Apple Partition Map from a buffer beginning at the device start
(block 0 = Driver Descriptor Map). Returns
Nonewithout theER/PMsignatures or if the buffer is too short.