ドキュメント

Unity Engine

Unity Engine

StreamingState(bool, ulong)

Create a StreamingState object, ready to be used with the streaming API
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Constructor
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public StreamingState(bool isHash64, ulong seed = 0)

Parameters

isHash64

true if we are computing a 64bits hash value, false if we are computing a 128bits one

seed

A seed value to be used to compute the hash, default is 0

Remarks

Once the object is constructed, you can call the xxHash3.StreamingState.Update method as many times as you want to accumulate data to hash. When all the data has been sent, call xxHash3.StreamingState.DigestHash64 or xxHash3.StreamingState.DigestHash128 to retrieve the corresponding key, the xxHash3.StreamingState instance will then be reset, using the same hash key size and same Seed in order to be ready to be used again.