osx-ar-0.1: Parser for OS X static archive format.

Data.OSXAr

Description

Data.OSXAr is a module for parsing an OS X static archive into a list of its member files and its symbol table.

Synopsis

Documentation

parseOSXAr :: ByteString -> (Map Int ArchiveEntry, Maybe (Map String Int))Source

Parse an OS X archive into a set of contained objects and a lookup table for fast lookup of which member file contains a symbol.

data ArchiveEntry Source

Constructors

ArchiveEntry 

Fields

filename :: String

File name.

filesize :: Int

File size.

filedata :: ByteString

File bytes.