Write i to the stream.
the byte to write
Write b to the stream.
Write len bytes from b starting at offset.
the bytes to write
the offset in the output stream
the number of bytes to write