internal static uint GetMaskedHash(NativeView data, NativeView mask, uint seed) { var copy = NativeArrayUtility.CreateOwningCopy(data, Allocator.Temp); MaskedMemCopy.ApplyMask(NativeViewUtility.GetWriteView(copy), mask); var hash = GetDenseHash(copy, seed); copy.Dispose(); return(hash); }
public static void ApplyMask <T>(NativeArray <T> target, NativeArray <byte> mask) where T : struct { ApplyMask(NativeViewUtility.GetWriteView(target), NativeViewUtility.GetReadView(mask)); }