Data.UniversalBinary is a module for parsing an OS X universal binary into a list of its member objects.
- parseUniversalBinary :: ByteString -> [Object]
- data Object = Object {
- cputype :: Int
- cpusubtype :: Int
- align :: Int
- object :: ByteString
Documentation
parseUniversalBinary :: ByteString -> [Object]Source
Parse a universal binary ByteString into a list of contained objects. An error is thrown for unexpected data.
A member of the universal binary. Usually a Mach-O object for a given architecture.
Object | |
|