jvmMain.ag.granular.tiff.compression.zip.Deflater.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiffany-jvm Show documentation
Show all versions of tiffany-jvm Show documentation
A library for parsing Tagged Image File Format (Tiff) files
The newest version!
package ag.granular.tiff.compression.zip
typealias JDeflater = java.util.zip.Deflater
actual class Deflater {
private val jd = JDeflater()
actual fun setInput(bytes: ByteArray) = jd.setInput(bytes)
actual fun finish() = jd.finish()
actual fun finished(): Boolean = jd.finished()
actual fun deflate(buffer: ByteArray): Int = jd.deflate(buffer)
}