push

fun push(data: Uint8Array<*>, flush: Flush = definedExternally): Boolean(source)
fun push(data: ArrayBuffer, flush: Flush = definedExternally): Boolean(source)
fun push(data: String, flush: Flush = definedExternally): Boolean(source)

Sends input data to deflate pipe, generating onData calls with new compressed chunks. Returns true on success. The last data block must have flush_mode Flush.Z_FINISH. That will flush internal pending buffers and call onEnd.

On fail call onEnd with error code and return false.