C# Класс System.SpanExtensions

A collection of convenient span helpers, exposed as extension methods.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SequenceEqual ( this first, ReadOnlySpan second ) : bool

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, Span second ) : bool

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, ReadOnlySpan second ) : bool

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, Span second ) : bool

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, ReadOnlySpan second ) : bool

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, Span second ) : bool

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, ReadOnlySpan second ) : bool

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, Span second ) : bool

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, ReadOnlySpan second ) : bool

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp

SequenceEqual ( this first, Span second ) : bool

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp

Описание методов

SequenceEqual() публичный статический метод

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, ReadOnlySpan second ) : bool
first this A span of bytes to compare to second.
second ReadOnlySpan A span of bytes T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, Span second ) : bool
first this A span of bytes to compare to second.
second Span A span of bytes T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, ReadOnlySpan second ) : bool
first this A span of characters to compare to second.
second ReadOnlySpan A span of characters T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, Span second ) : bool
first this A span of characters to compare to second.
second Span A span of characters T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, ReadOnlySpan second ) : bool
first this A span of integers to compare to second.
second ReadOnlySpan A span of integers T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, Span second ) : bool
first this A span of integers to compare to second.
second Span A span of integers T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, ReadOnlySpan second ) : bool
first this A span of long integers to compare to second.
second ReadOnlySpan A span of long integers T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, Span second ) : bool
first this A span of long integers to compare to second.
second Span A span of long integers T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two read-only spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, ReadOnlySpan second ) : bool
first this A span of shorts to compare to second.
second ReadOnlySpan A span of shorts T to compare to first.
Результат bool

SequenceEqual() публичный статический метод

Determines whether two spans are equal (byte-wise) by comparing the elements by using memcmp
public static SequenceEqual ( this first, Span second ) : bool
first this A span of shorts to compare to second.
second Span A span of shorts T to compare to first.
Результат bool