Header.writeToStream

Write the header to the specified stream.

Parameters

options gmime.format_options.FormatOptions

a #GMimeFormatOptions or null

stream gmime.stream.Stream

a #GMimeStream

Return Value

Type: ptrdiff_t

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