Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Hash(void*, int)

Returns a (non-cryptographic) hash of a memory block.
Read time 1 minuteLast updated 14 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static uint Hash(void* ptr, int bytes)

Parameters

A buffer.

bytes

The number of bytes to hash.

Returns

Type

Description

uintA hash of the bytes.

Remarks