Method CompareHashes
CompareHashes<TOldValue, TOldGetter, TNewValue, TNewGetter>(int, void*, int, void*, int*, int*, out int, out int)
Compare hashes of two collections and provide
a list of indices removeIndices to remove in oldHashes
and a list of indices addIndices to add in newHashes.
Assumes that newHashes and oldHashes are sorted.
선언
public static int CompareHashes<TOldValue, TOldGetter, TNewValue, TNewGetter>(int oldHashCount, void* oldHashes, int newHashCount, void* newHashes, int* addIndices, int* removeIndices, out int addCount, out int remCount) where TOldValue : struct where TOldGetter : struct, CoreUnsafeUtils.IKeyGetter<TOldValue, Hash128> where TNewValue : struct where TNewGetter : struct, CoreUnsafeUtils.IKeyGetter<TNewValue, Hash128>
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| int | oldHashCount | Number of hashes in |
| void* | oldHashes | Previous hashes to compare. |
| int | newHashCount | Number of hashes in |
| void* | newHashes | New hashes to compare. |
| int* | addIndices | Indices of element to add in |
| int* | removeIndices | Indices of element to remove in |
| int | addCount | Number of elements to add will be written here. |
| int | remCount | Number of elements to remove will be written here. |
반환
| 타입 | 설명 |
|---|---|
| int | The number of operation to perform ( )
|
타입 파라미터
| 이름 | 설명 |
|---|---|
| TOldValue | |
| TOldGetter | |
| TNewValue | |
| TNewGetter |
CompareHashes(int, Hash128*, int, Hash128*, int*, int*, out int, out int)
선언
public static int CompareHashes(int oldHashCount, Hash128* oldHashes, int newHashCount, Hash128* newHashes, int* addIndices, int* removeIndices, out int addCount, out int remCount)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| int | oldHashCount | |
| Hash128* | oldHashes | |
| int | newHashCount | |
| Hash128* | newHashes | |
| int* | addIndices | |
| int* | removeIndices | |
| int | addCount | |
| int | remCount |
반환
| 타입 | 설명 |
|---|---|
| int |