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

API Browser

Method

Write

abstract virtual func Write(buffer: ReadOnlySlice<byte>) -> Result<void, StreamError>

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

Defined by SyncOutputStream.Write · Required implementation (no default).

Interface implementation: Required implementation (no default).

Writes the entire borrowed source range.

Parameters

Name Type Description
buffer ReadOnlySlice<Byte> Bytes to write; the implementation must not retain this view.

Return value

Result<void, StreamError>

Success after the full range is accepted, or a stream error. Failure may follow partial output.