ObjectWrap.writeToStream

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

Parameters

options gmime.format_options.FormatOptions

a #GMimeFormatOptions or null

stream gmime.stream.Stream

stream

Return Value

Type: ptrdiff_t

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