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

API Browser

Member group

Create

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

Overloads / Variants

Create

static func Create(input: SyncInputStream, encoding: Encoding, leaveOpen: bool = false) -> Result<SyncStreamReader, TextReadError>

Source file: SyncStreamReader.rvn

Creates a wrapper with the supplied encoding and ownership policy.

Parameters

Name Type Description
input SyncInputStream
encoding Encoding
leaveOpen Boolean

Return value

Result<SyncStreamReader, TextReadError>

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(input: SyncInputStream, leaveOpen: bool = false) -> Result<SyncStreamReader, TextReadError>

Source file: SyncStreamReader.rvn

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

Parameters

Name Type Description
input SyncInputStream
leaveOpen Boolean

Return value

Result<SyncStreamReader, TextReadError>