Show / Hide Table of Contents

Struct SpanBuilder<T>

Represents a in the process of being initialized.

Namespace: Towel
Assembly: Towel.dll
Syntax
public struct SpanBuilder<T>
Type Parameters
Name Description
T

The type of values in the .

Constructors

| Improve this Doc View Source

SpanBuilder(Span<T>)

Constructs a new SpanBuilder<T>.

Declaration
public SpanBuilder(Span<T> span)
Parameters
Type Name Description
Span<T> span

The to initialize.

Methods

| Improve this Doc View Source

Append(T)

Appends a T to this SpanBuilder<T>.

Declaration
public void Append(T value)
Parameters
Type Name Description
T value

The T to append to this SpanBuilder<T>.

| Improve this Doc View Source

Append(ReadOnlySpan<T>)

Appends a T span to this SpanBuilder<T>.

Declaration
public void Append(ReadOnlySpan<T> span)
Parameters
Type Name Description
ReadOnlySpan<T> span

The T span to append to this SpanBuilder<T>.

Operators

| Improve this Doc View Source

Implicit(Span<T> to SpanBuilder<T>)

Converts a to a SpanBuilder<T>.

Declaration
public static implicit operator SpanBuilder<T>(Span<T> span)
Parameters
Type Name Description
Span<T> span

The to convert to a SpanBuilder<T>.

Returns
Type Description
SpanBuilder<T>
| Improve this Doc View Source

Implicit(SpanBuilder<T> to ReadOnlySpan<T>)

Converts a SpanBuilder<T> to a .

Declaration
public static implicit operator ReadOnlySpan<T>(SpanBuilder<T> spanBuilder)
Parameters
Type Name Description
SpanBuilder<T> spanBuilder

The SpanBuilder<T> to convert to a .

Returns
Type Description
ReadOnlySpan<T>
| Improve this Doc View Source

Implicit(SpanBuilder<T> to Span<T>)

Converts a SpanBuilder<T> to a .

Declaration
public static implicit operator Span<T>(SpanBuilder<T> spanBuilder)
Parameters
Type Name Description
SpanBuilder<T> spanBuilder

The SpanBuilder<T> to convert to a .

Returns
Type Description
Span<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX