Skip to content

How to use this lib for zlib? #2087

Answered by soywiz
StefanOltmann asked this question in Q&A
Discussion options

You must be logged in to vote

I see.

kzlib was archived, because it was reimplemented without licensing issues into korlibs-core to simplify licensing. Since uncompressing is simpler.
Also maintaining that many repos was really costly in terms of time, so I unified libraries and repos as much as possible to save my own time.

You can include korlibs-core that includes the io package. Otherwise, you can copy those sources from kzlib into your library with the zlib license. Most of the code is common except for the arraycopy, but with recent Kotlin versions yo should be able to use the copyInto function and all the code should be common: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/copy-into.html

Hope …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by soywiz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants