Version: 2020.2
LanguageEnglish
  • C#

UnsafeUtility.MemCmp(IntPtr,IntPtr,ulong)

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Parameters

ptr1 Pointer to the first memory buffer.
ptr2 Pointer to the second memory buffer to compare the first one to.
size Number of bytes to compare.

Returns

void 0 if the contents are identical, non-zero otherwise.

Description

Checks to see whether two memory regions are identical or not by comparing a specified memory region in the first given memory buffer with the same region in the second given memory buffer.

The memory regions may overlap. Returns 0 if the contents of the two regions are identical.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961