Class
SyncStreamReader
class SyncStreamReader
Module: System.IO
Assembly: System.Runtime.dll
Source file: SyncStreamReader.rvn
Inheritance: Object → SyncStreamReader
Implements: SyncTextReader
Synchronous buffered text input with explicit stream ownership.
Properties
1 item
NewLine: string
Exact nonempty line delimiter, removed from ReadLine results. Defaults to LF.
Implements SyncTextReader.NewLine
Methods
13 items
Close() -> ()
No summary available.
Implements SyncTextReader.Close
Static member:
Create(input: SyncInputStream, encoding: Encoding, leaveOpen?: bool) -> Result<SyncStreamReader, TextReadError>
Creates a wrapper with the supplied encoding and ownership policy.
Static member:
Create(input: SyncInputStream, leaveOpen?: bool) -> Result<SyncStreamReader, TextReadError>
Creates a UTF-8 wrapper with explicit ownership of the underlying stream.
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
PeekChar() -> Result<Optional<Character>, TextReadError>
Peeks at the next Unicode grapheme without advancing the text cursor.
Implements SyncTextReader.PeekChar
Read(count: int, maxUtf8Bytes: int) -> Result<string, TextReadError>
Reads a requested number of graphemes with a separate UTF-8 byte bound.
Implements SyncTextReader.Read
Read(count: int) -> Result<string, TextReadError>
Reads a requested number of graphemes with a separate UTF-8 byte bound.
Implements SyncTextReader.Read
ReadChar() -> Result<Optional<Character>, TextReadError>
Reads one Unicode grapheme and advances the shared text cursor.
Implements SyncTextReader.ReadChar
ReadLine(maxUtf8Bytes: int) -> Result<Optional<string>, TextReadError>
No summary available.
Implements SyncTextReader.ReadLine
ReadToEnd(maxUtf8Bytes: int) -> Result<string, TextReadError>
No summary available.
Implements SyncTextReader.ReadToEnd
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString