BuffersExtensions 类

定义

ReadOnlySequence<T> 提供扩展方法。Provides extension methods for ReadOnlySequence<T>.

public ref class BuffersExtensions abstract sealed
public static class BuffersExtensions
type BuffersExtensions = class
Public Module BuffersExtensions
继承
BuffersExtensions

方法

CopyTo<T>(ReadOnlySequence<T>, Span<T>)

ReadOnlySequence<T> 复制到所指定的 Span<T>Copies the ReadOnlySequence<T> to the specified Span<T>.

PositionOf<T>(ReadOnlySequence<T>, T)

返回 itemReadOnlySequence<T> 中第一次出现的位置。Returns the position of the first occurrence of item in the ReadOnlySequence<T>.

ToArray<T>(ReadOnlySequence<T>)

ReadOnlySequence<T> 转换为数组。Converts the ReadOnlySequence<T> to an array.

Write<T>(IBufferWriter<T>, ReadOnlySpan<T>)

value 的内容写入到 writerWrites the contents of value to writer.

适用于