文档

Unity Engine

Unity Engine

Update

Add some data to be hashed
阅读时间1 分钟最后更新于 1 个月前

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.