Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

Create

Declaring type: SyncStreamWriter
Module: System.IO
Assembly: System.Runtime.dll
Source file: SyncStreamWriter.rvn

Overloads / Variants

Create

static func Create(output: SyncOutputStream, encoding: Encoding, leaveOpen: bool = false) -> Result<SyncStreamWriter, StreamError>

Source file: SyncStreamWriter.rvn

Creates a wrapper with the supplied encoding and ownership policy.

Parameters

Name Type Description
output SyncOutputStream
encoding Encoding
leaveOpen Boolean

Return value

Result<SyncStreamWriter, StreamError>

Remarks

Current initialization is infallible for valid providers; decoding and I/O errors occur during operations. No input is read or output written. Use one buffering wrapper per stream direction.

Create

static func Create(output: SyncOutputStream, leaveOpen: bool = false) -> Result<SyncStreamWriter, StreamError>

Source file: SyncStreamWriter.rvn

Creates a UTF-8 wrapper with explicit ownership of the underlying stream.

Parameters

Name Type Description
output SyncOutputStream
leaveOpen Boolean

Return value

Result<SyncStreamWriter, StreamError>