Uses the provided Path to create a ZSink that consumes byte chunks
and writes them to the File.
Uses the provided Path to create a ZSink that consumes byte chunks
and writes them to the File. The sink will yield count of bytes written.
Uses the provided OutputStream to create a ZSink that consumes byte chunks
and writes them to the OutputStream.
Uses the provided OutputStream to create a ZSink that consumes byte chunks
and writes them to the OutputStream. The sink will yield the count of bytes written.
The caller of this function is responsible for closing the OutputStream.
Uses the provided OutputStream resource to create a ZSink that consumes byte chunks
and writes them to the OutputStream.
Uses the provided OutputStream resource to create a ZSink that consumes byte chunks
and writes them to the OutputStream. The sink will yield the count of bytes written.
The OutputStream will be automatically closed after the stream is finished or an error occurred.