universal-binary-0.1: Parser for OS X Universal Binary format.

Data.UniversalBinary

Description

Data.UniversalBinary is a module for parsing an OS X universal binary into a list of its member objects.

Synopsis

Documentation

parseUniversalBinary :: ByteString -> [Object]Source

Parse a universal binary ByteString into a list of contained objects. An error is thrown for unexpected data.

data Object Source

A member of the universal binary. Usually a Mach-O object for a given architecture.

Constructors

Object 

Fields

cputype :: Int

CPU type from usrincludemachmachine.h.

cpusubtype :: Int

CPU subtype from usrincludemachmachine.h.

align :: Int

Required file alignment of object.

object :: ByteString

Byte string for object data.

Instances