C# Class System.SpanExtensions

A collection of convenient span helpers, exposed as extension methods.
显示文件 Open project: antiufo/Shaman.ValueString Class Usage Examples

Public Methods

Method Description
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

Method Details

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool

SequenceEqual() public static method

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.
return bool