Write the header to the specified stream.
a Header
a FormatOptions or null
a Stream
the number of bytes written, or %-1 on fail.