YEnc Writer Constructor
Initialize a yEnc writer.
Definition
Namespace: MimeKit.Encodings
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public YEncWriter(
Stream stream,
YEncOptions? options = null,
bool leaveOpen = false
)Parameters
- stream Stream
- The writable destination.
- options YEncOptions (Optional)
- The options, or for defaults.
- leaveOpen Boolean (Optional)
- Whether to leave the destination open when disposed.
Remarks
The options are copied; the destination need not support seeking.
Exceptions
| ArgumentNullException | stream is null. |
| ArgumentException | The destination is not writable. |