Required Instance Methodadam-fowler.compress-nio 1.3.0CompressNIO
startStream
Setup compressor for stream compression
Compressor.swift:68func startStream() throws
Other requirements
Instance members
var window: ByteBuffer?
Working buffer for window based compression
func deflate(from: inout ByteBuffer, to: inout ByteBuffer
) throws Compress byte buffer to another byte buffer
func finishDeflate(to: inout ByteBuffer
) throws Finish stream deflate, where you have no more input data but still have data to output
func finishStream(
) throws Finish using this compressor for stream compression
func maxSize(from: ByteBuffer
) -> Int Return the maximum possible number of bytes required for the compressed version of a
ByteBuffer
func resetStream(
) throws equivalent of calling
finishStream
followed bystartStream
. There maybe implementation of this that are more optimalfunc streamDeflate(from: inout ByteBuffer, to: inout ByteBuffer, flush: CompressNIOFlush
) throws Compress block as part of a stream compression