Edit

Share via


WindowsRuntimeBufferExtensions.IsSameData(IBuffer, IBuffer) Method

Definition

Important

This API is not CLS-compliant.

Returns a value that indicates whether two buffers (Windows.Storage.Streams.IBuffer objects) represent the same underlying memory region.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsSameData(Windows::Storage::Streams::IBuffer ^ buffer, Windows::Storage::Streams::IBuffer ^ otherBuffer);
[System.CLSCompliant(false)]
public static bool IsSameData (this Windows.Storage.Streams.IBuffer buffer, Windows.Storage.Streams.IBuffer otherBuffer);
[<System.CLSCompliant(false)>]
static member IsSameData : Windows.Storage.Streams.IBuffer * Windows.Storage.Streams.IBuffer -> bool
<Extension()>
Public Function IsSameData (buffer As IBuffer, otherBuffer As IBuffer) As Boolean

Parameters

buffer
IBuffer

The first buffer.

otherBuffer
IBuffer

The second buffer.

Returns

true if the memory regions that are represented by the two buffers have the same starting point; otherwise, false.

Attributes

Applies to