MemoryExtensions.Overlaps メソッド

定義

オーバーロード

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

2 つの読み取り専用シーケンスがメモリ内で重なり合うかどうかを判断します。Determines whether two read-only sequences overlap in memory.

Overlaps<T>(Span<T>, ReadOnlySpan<T>)

スパンと読み取り専用スパンがメモリ内で重なり合うかどうかを判断します。Determines whether a span and a read-only span overlap in memory.

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Int32)

2 つの読み取り専用シーケンスがメモリ内で重なり合うかどうかを判断し、要素のオフセットを出力します。Determines whether two read-only sequences overlap in memory and outputs the element offset.

Overlaps<T>(Span<T>, ReadOnlySpan<T>, Int32)

スパンと読み取り専用スパンがメモリ内で重なり合うかどうかを判断し、要素のオフセットを出力します。Determines whether a span and a read-only span overlap in memory and outputs the element offset.

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

2 つの読み取り専用シーケンスがメモリ内で重なり合うかどうかを判断します。Determines whether two read-only sequences overlap in memory.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Overlaps(ReadOnlySpan<T> span, ReadOnlySpan<T> other);
public static bool Overlaps<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> other);
static member Overlaps : ReadOnlySpan<'T> * ReadOnlySpan<'T> -> bool
<Extension()>
Public Function Overlaps(Of T) (span As ReadOnlySpan(Of T), other As ReadOnlySpan(Of T)) As Boolean

型パラメーター

T

読み取り専用シーケンス内の要素いる型。The type of elmeents in the read-only sequence.

パラメーター

span
ReadOnlySpan<T>

最初のシーケンス。The first sequence.

other
ReadOnlySpan<T>

2 番目のシーケンス。The second sequence.

戻り値

2 つのシーケンスが重なり合う場合は true。それ以外の場合は falsetrue if the two sequences overlap; otherwise, false.

Overlaps<T>(Span<T>, ReadOnlySpan<T>)

スパンと読み取り専用スパンがメモリ内で重なり合うかどうかを判断します。Determines whether a span and a read-only span overlap in memory.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Overlaps(Span<T> span, ReadOnlySpan<T> other);
public static bool Overlaps<T> (this Span<T> span, ReadOnlySpan<T> other);
static member Overlaps : Span<'T> * ReadOnlySpan<'T> -> bool
<Extension()>
Public Function Overlaps(Of T) (span As Span(Of T), other As ReadOnlySpan(Of T)) As Boolean

型パラメーター

T

スパン内の要素の型。The type of elements in the span.

パラメーター

span
Span<T>

比較対象とするスパン。The span to compare.

other
ReadOnlySpan<T>

比較する読み取り専用スパン。The read-only span to compare.

戻り値

2 つのシーケンスが重なり合う場合は true。それ以外の場合は falsetrue if the two sequences overlap; otherwise, false.

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Int32)

2 つの読み取り専用シーケンスがメモリ内で重なり合うかどうかを判断し、要素のオフセットを出力します。Determines whether two read-only sequences overlap in memory and outputs the element offset.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Overlaps(ReadOnlySpan<T> span, ReadOnlySpan<T> other, [Runtime::InteropServices::Out] int % elementOffset);
public static bool Overlaps<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> other, out int elementOffset);
static member Overlaps : ReadOnlySpan<'T> * ReadOnlySpan<'T> * int -> bool
<Extension()>
Public Function Overlaps(Of T) (span As ReadOnlySpan(Of T), other As ReadOnlySpan(Of T), ByRef elementOffset As Integer) As Boolean

型パラメーター

T

スパン内の要素の型。The type of elements in the span.

パラメーター

span
ReadOnlySpan<T>

最初のシーケンス。The first sequence.

other
ReadOnlySpan<T>

2 番目のシーケンス。The second sequence.

elementOffset
Int32

戻り値

2 つのシーケンスが重なり合う場合は true。それ以外の場合は falsetrue if the two sequences overlap; otherwise, false.

Overlaps<T>(Span<T>, ReadOnlySpan<T>, Int32)

スパンと読み取り専用スパンがメモリ内で重なり合うかどうかを判断し、要素のオフセットを出力します。Determines whether a span and a read-only span overlap in memory and outputs the element offset.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Overlaps(Span<T> span, ReadOnlySpan<T> other, [Runtime::InteropServices::Out] int % elementOffset);
public static bool Overlaps<T> (this Span<T> span, ReadOnlySpan<T> other, out int elementOffset);
static member Overlaps : Span<'T> * ReadOnlySpan<'T> * int -> bool
<Extension()>
Public Function Overlaps(Of T) (span As Span(Of T), other As ReadOnlySpan(Of T), ByRef elementOffset As Integer) As Boolean

型パラメーター

T

スパン内の要素の型。The type of elements in the span.

パラメーター

span
Span<T>

比較する最初のシーケンス。The first sequence to compare.

other
ReadOnlySpan<T>

比較する 2 番目のシーケンス。The second sequence to compare.

elementOffset
Int32

メソッドが戻ると、spanother の間にオフセットが含まれます。When the method returns, contains the offset between span and other.

戻り値

2 つのシーケンスが重なり合う場合は true。それ以外の場合は falsetrue if the two sequences overlap; otherwise, false.

適用対象