ObjectWrap.writeToStream

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

Write the headers and content of the MIME object to stream.

Parameters

optionsa #GMimeFormatOptions or null
streamstream

Returns

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