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 inflate pipe, generating onData calls with new output chunks. Returns true on success. If end of stream detected, onEnd will be called.

flush_mode is not needed for normal operation, because end of stream detected automatically. You may try to use it for advanced things, but this functionality was not tested.

On fail call onEnd with error code and return false.