Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Update

Add some data to be hashed
Read time 1 minuteLast updated 12 days ago

Definition

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

Update(void*, int)

Add some data to be hashed
public void Update(void* input, int length)

Parameters

input

The memory buffer, can't be null

length

The length of the data to accumulate, can be zero

Remarks

This API allows you to feed very small data to be hashed, avoiding you to accumulate them in a big buffer, then computing the hash value from.

Update<T>(T)

Add the contents of input struct to the hash.
public void Update<T>(in T input) where T : unmanaged

Parameters

input

T
The input struct that will be hashed

Remarks

This API allows you to feed very small data to be hashed, avoiding you to accumulate them in a big buffer, then computing the hash value from.