MemoryExtensions.Overlaps MemoryExtensions.Overlaps MemoryExtensions.Overlaps MemoryExtensions.Overlaps Method

Definition

Überlädt

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

Bestimmt, ob sich zwei schreibgeschützte Sequenzen im Speicher überlappen.Determines whether two read-only sequences overlap in memory.

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

Bestimmt, ob sich eine Spanne und eine schreibgeschützte Spanne im Speicher überlappen.Determines whether a span and a read-only span overlap in memory.

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

Bestimmt, ob sich zwei schreibgeschützte Sequenzen im Speicher überlappen, und gibt den Elementoffset aus.Determines whether two read-only sequences overlap in memory and outputs the element offset.

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

Bestimmt, ob sich eine Spanne und eine schreibgeschützte Spanne im Speicher überlappen, und gibt den Elementoffset aus.Determines whether a span and a read-only span overlap in memory and outputs the element offset.

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

Bestimmt, ob sich zwei schreibgeschützte Sequenzen im Speicher überlappen.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

Typparameter

T

Der Typ der in dem in der schreibgeschützten Sequenz.The type of elmeents in the read-only sequence.

Parameter

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

Die erste Sequenz.The first sequence.

other
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

Die zweite Sequenz.The second sequence.

Gibt zurück

true, wenn sich die beiden Sequenzen überlappen, andernfalls false.true if the two sequences overlap; otherwise, false.

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

Bestimmt, ob sich eine Spanne und eine schreibgeschützte Spanne im Speicher überlappen.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

Typparameter

T

Der Typ der Elemente in der Spanne.The type of elements in the span.

Parameter

span
Span<T> Span<T> Span<T> Span<T>

Die zu vergleichende Spanne.The span to compare.

other
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

Die zu vergleichende schreibgeschützte Spanne.The read-only span to compare.

Gibt zurück

true, wenn sich die beiden Sequenzen überlappen, andernfalls false.true if the two sequences overlap; otherwise, false.

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

Bestimmt, ob sich zwei schreibgeschützte Sequenzen im Speicher überlappen, und gibt den Elementoffset aus.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> *  -> bool
<Extension()>
Public Function Overlaps(Of T) (span As ReadOnlySpan(Of T), other As ReadOnlySpan(Of T), ByRef elementOffset As Integer) As Boolean

Typparameter

T

Der Typ der Elemente in der Spanne.The type of elements in the span.

Parameter

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

Die erste Sequenz.The first sequence.

other
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

Die zweite Sequenz.The second sequence.

elementOffset
Int32 Int32 Int32 Int32

Gibt zurück

true, wenn sich die beiden Sequenzen überlappen, andernfalls false.true if the two sequences overlap; otherwise, false.

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

Bestimmt, ob sich eine Spanne und eine schreibgeschützte Spanne im Speicher überlappen, und gibt den Elementoffset aus.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> *  -> bool
<Extension()>
Public Function Overlaps(Of T) (span As Span(Of T), other As ReadOnlySpan(Of T), ByRef elementOffset As Integer) As Boolean

Typparameter

T

Der Typ der Elemente in der Spanne.The type of elements in the span.

Parameter

span
Span<T> Span<T> Span<T> Span<T>

Die erste zu vergleichende Sequenz.The first sequence to compare.

other
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

Die zweite zu vergleichende Sequenz.The second sequence to compare.

elementOffset
Int32 Int32 Int32 Int32

Wenn die Methode zurückkehrt, enthält sie den Offset zwischen span und other.When the method returns, contains the offset between span and other.

Gibt zurück

true, wenn sich die beiden Sequenzen überlappen, andernfalls false.true if the two sequences overlap; otherwise, false.

Gilt für: