Table of Contents

Interface IOutputStream

Namespace
Windows.Storage.Streams
Assembly
Windows.Storage.Streams.dll

Represents a sequential stream of bytes to be written.

public interface IOutputStream
Extension Methods

Properties

UnstoredBufferLength

Gets the size of the buffer that has not been used.

uint UnstoredBufferLength { get; set; }

Property Value

uint

The available buffer length, in bytes.

Methods

Flush()

Flushes data in a sequential stream.

bool Flush()

Returns

bool

The stream flush operation.

Remarks

The Flush method may produce latencies and does not always guarantee durable and coherent storage of data. It's generally recommended to avoid this method if possible. This method is specific to nanoFramework. The equivalent method in the UWP API is: FlushAsync.

Store()

uint Store()

Returns

uint

Write(byte[])

Writes data in a sequential stream.

void Write(byte[] buffer)

Parameters

buffer byte[]

A byte array buffer that contains the data to be written.

Remarks

This method is specific to nanoFramework. The equivalent method in the UWP API is: WriteAsync(IBuffer buffer).