Class
SyncStreamWriter
class SyncStreamWriter
Module: System.IO
Assembly: System.Runtime.dll
Source file: SyncStreamWriter.rvn
Inheritance: Object → SyncStreamWriter
Implements: SyncTextWriter
Synchronous buffered text output with explicit stream ownership.
Properties
1 item
NewLine: string
String appended by WriteLine. Defaults to LF; an empty string appends nothing.
Implements SyncTextWriter.NewLine
Methods
11 items
Close() -> ()
Closes this wrapper and its output unless leaveOpen was selected. Does not flush or finish.
Implements SyncTextWriter.Close
Static member:
Create(output: SyncOutputStream, encoding: Encoding, leaveOpen?: bool) -> Result<SyncStreamWriter, StreamError>
Creates a wrapper with the supplied encoding and ownership policy.
Static member:
Create(output: SyncOutputStream, leaveOpen?: bool) -> Result<SyncStreamWriter, StreamError>
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
Finish() -> Result<int, StreamError>
Finalizes encoding. Repeated successful finalization returns zero.
Implements SyncTextWriter.Finish
Flush() -> Result<void, StreamError>
Flushes the underlying output without finalizing the encoder.
Implements SyncTextWriter.Flush
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
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
Write(text: string) -> Result<int, StreamError>
Encodes and writes text; returns the number of encoded bytes.
Implements SyncTextWriter.Write
WriteLine(text: string) -> Result<int, StreamError>
Encodes and writes text followed by NewLine; returns the encoded byte count.
Implements SyncTextWriter.WriteLine