Table of Contents

Struct SpanStream<T>

Namespace
Yarhl.Media.Text.Encodings
Assembly
Yarhl.Media.Text.dll

Efficient stream-like implemented with Span.

public readonly ref struct SpanStream<T>

Type Parameters

T

The type of the data of the stream.

Inherited Members

Properties

Length

Gets the length of the current stream.

public int Length { get; }

Property Value

int

Methods

Write(ReadOnlySpan<T>)

Writes a sequence of values in the stream.

public void Write(ReadOnlySpan<T> data)

Parameters

data ReadOnlySpan<T>

The data to write in the stream.

Write(T)

Writes a value in the stream.

public void Write(T data)

Parameters

data T

Value to write.