Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Hash64

Compute a 64bits hash of a memory region
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

Hash64(void*, long)

Compute a 64bits hash of a memory region
public static uint2 Hash64(void* input, long length)

Parameters

input

The memory buffer, can't be null

length

The length of the memory buffer, can be zero

Returns

Type

Description

uint2The hash result

Hash64<T>(T)

Compute a 64bits hash from the contents of the input struct
public static uint2 Hash64<T>(in T input) where T : unmanaged

Parameters

input

T
The input struct that will be hashed

Returns

Type

Description

uint2The hash result

Hash64(void*, long, ulong)

Compute a 64bits hash of a memory region using a given seed value
public static uint2 Hash64(void* input, long length, ulong seed)

Parameters

input

The memory buffer, can't be null

length

The length of the memory buffer, can be zero

seed

The seed value to alter the hash computation from

Returns

Type

Description

uint2The hash result