[This is preliminary documentation and is subject to change.]
Returns true if both buffers contain the same number of the same bytes.
The implementation uses quad-word comparison as much as possible for speed.
Requires UNSAFE switch
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static bool MemBufferEquals(
this byte[] buf1,
byte[] buf2
)
public static bool MemBufferEquals(
this byte[] buf1,
byte[] buf2
)
<ExtensionAttribute>
Public Shared Function MemBufferEquals (
buf1 As Byte(),
buf2 As Byte()
) As Boolean
<ExtensionAttribute>
Public Shared Function MemBufferEquals (
buf1 As Byte(),
buf2 As Byte()
) As Boolean
public:
[ExtensionAttribute]
static bool MemBufferEquals(
array<unsigned char>^ buf1,
array<unsigned char>^ buf2
)
public:
[ExtensionAttribute]
static bool MemBufferEquals(
array<unsigned char>^ buf1,
array<unsigned char>^ buf2
)
static member MemBufferEquals :
buf1 : byte[] *
buf2 : byte[] -> bool
static member MemBufferEquals :
buf1 : byte[] *
buf2 : byte[] -> bool
Return Value
Type:
BooleanUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).