Add LZMA preset option constants

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent 95c97b8399
commit c16295d72c
  1. 4
      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)

Loading…
Cancel
Save