Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 578 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 578 Bytes

MachOParser

MachOParser is a Kotlin library to parse Mach-O files

Mach-O is a file format for executables, shared libraries and related binaries. This library reads the Mach-O file and provides access to its metadata. The CPU Type metadata is supported.

Installation

Gradle:

repositories {
    mavenCentral()
}

dependencies {
    implementation("dev.mobile:machoparser")
}

Usage

let file = File(...)
if (MachOParser.parseCPUTypes(file.inputStream()).contains(X86_64)) {
    // handle X86_64
}