Skip to content

Commit

Permalink
Add prefix-data note to features, fix unsafe note in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Apr 27, 2024
1 parent ca2f02c commit e4ced04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ But that's not all it does. That's just what that one comment says. Some other f
- Naive: Scans only for `LocalFileHeader` values from the front of the file, the fastest implementation, but obviously naive
- JVM: Matches the behavior of the JVM's ZIP parser, including a number of odd edge cases. Useful for opening JAR files to mirror `java -jar <path>` behavior.
- Inputs do not have to be on-disk to be read, you can supply zip data in-memory.
- Tracks data in front of ZIP contents as `ZipArchive.getPrefixData()`
- Useful for cases like keeping track of the executable header of Jar2Exe archives.

## Usage

Expand Down Expand Up @@ -93,7 +95,7 @@ There is also a `ZipFile` delegating reader `AdaptingZipReader` but it should pr

## Building

Due to some `sun.misc.Unsafe` hacks _(For performance and long addressing)_, you will get compiler warnings when first opening the project in IntelliJ.
Due to some `sun.misc.Unsafe` hacks _(For faster deflate performance)_, you will get compiler warnings when first opening the project in IntelliJ.
You can resolve this by changing the compiler target:

![intellij compiler settings](docs/compiler-settings.png)

0 comments on commit e4ced04

Please sign in to comment.