From c16295d72c8978a2a850ad304ca1a841c55f08ef Mon Sep 17 00:00:00 2001 From: Graham Date: Tue, 4 Aug 2020 11:18:54 +0100 Subject: [PATCH] Add LZMA preset option constants Signed-off-by: Graham --- compress/src/main/java/dev/openrs2/compress/lzma/Lzma.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compress/src/main/java/dev/openrs2/compress/lzma/Lzma.kt b/compress/src/main/java/dev/openrs2/compress/lzma/Lzma.kt index 7c723e19ac..4a985541f5 100644 --- a/compress/src/main/java/dev/openrs2/compress/lzma/Lzma.kt +++ b/compress/src/main/java/dev/openrs2/compress/lzma/Lzma.kt @@ -9,6 +9,10 @@ import java.io.InputStream import java.io.OutputStream object Lzma { + val BEST_SPEED = LZMA2Options(LZMA2Options.PRESET_MIN) + val DEFAULT_COMPRESSION = LZMA2Options(LZMA2Options.PRESET_DEFAULT) + val BEST_COMPRESSION = LZMA2Options(LZMA2Options.PRESET_MAX) + fun createHeaderlessInputStream(input: InputStream, length: Long): InputStream { val headerInput = LittleEndianDataInputStream(input)