Header.writeToStream

ptrdiff_t writeToStream(gmime.format_options.FormatOptions options, gmime.stream.Stream stream)

Write the header to the specified stream.

Parameters

optionsa #GMimeFormatOptions or null
streama #GMimeStream

Returns

the number of bytes written, or %-1 on fail.