HeaderList.writeToStream

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

Write the headers to a stream.

Parameters

optionsa #GMimeFormatOptions or null
streamoutput stream

Returns

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