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.