Skip to main content

Module format

Module format 

Source
Expand description

Binary format definitions for DMG files

DMG files have the following structure:

  1. Data blocks (compressed partition data)
  2. XML plist containing block maps (blkx)
  3. Koly trailer (512 bytes at end of file)

Structs§

BlockRun
Block run descriptor in a mish block map
KolyHeader
Koly trailer structure (512 bytes at end of DMG)
MishHeader
Mish (block map) header structure
PartitionEntry
Partition entry from the DMG plist

Enums§

BlockType
Block chunk types

Constants§

KOLY_MAGIC
Koly magic bytes “koly” (0x6B6F6C79)
KOLY_SIZE
Koly header size in bytes
MISH_MAGIC
Mish magic bytes “mish” (0x6D697368)

Functions§

is_dmg
Check if data has the koly magic at the end (512 bytes from end)