compress

fun compress(in: ByteArray, len: Int, tmp: ByteArray, out: DataOutput): Boolean

Compress in[0:len] into out. This returns false if the content cannot be compressed. The number of bytes written is guaranteed to be less than len otherwise.