https://github.com/mobile-dev-inc/machoparser
MachOParser is a Kotlin library to parse Mach-O files
https://github.com/mobile-dev-inc/machoparser
Last synced: about 1 year ago
JSON representation
MachOParser is a Kotlin library to parse Mach-O files
- Host: GitHub
- URL: https://github.com/mobile-dev-inc/machoparser
- Owner: mobile-dev-inc
- License: mit
- Created: 2022-10-14T14:51:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-18T12:20:50.000Z (over 3 years ago)
- Last Synced: 2023-05-25T23:26:57.673Z (about 3 years ago)
- Language: Kotlin
- Size: 405 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MachOParser
MachOParser is a Kotlin library to parse Mach-O files
[Mach-O](https://en.wikipedia.org/wiki/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:
``` gradle
repositories {
mavenCentral()
}
dependencies {
implementation("dev.mobile:machoparser")
}
```
## Usage
``` kotlin
let file = File(...)
if (MachOParser.parseCPUTypes(file.inputStream()).contains(X86_64)) {
// handle X86_64
}
```