A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.unity3d.com/Manual/../ScriptReference/HashUnsafeUtilities.ComputeHash128.html below:

Unity - Scripting API: HashUnsafeUtilities.ComputeHash128

HashUnsafeUtilities.ComputeHash128 Suggest a change Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close Your name Your email Suggestion*

Cancel

Declarationpublic static void ComputeHash128(void* data, ulong dataSize, ulong* hash1, ulong* hash2);

Declarationpublic static void ComputeHash128(void* data, ulong dataSize, Hash128* hash);

Parameters Parameter Description data Pointer to the data to hash. dataSize The number of bytes to hash. hash1 A pointer to store the low 64 bits of the computed hash. hash2 A pointer to store the high 64 bits of the computed hash. hash A pointer to the Hash128 to updated with the computed hash. Description

Compute a 128 bit hash based on a data.

using UnityEngine;

public class HashUtilitiesSample { public void ComputeHash128_ToULong() { unsafe { ulong* message = stackalloc ulong[2]; message[0] = 0x73BC2A67F; message[1] = 0x54B1A5C2C;

ulong h1 = 0; ulong h2 = 0;

HashUnsafeUtilities.ComputeHash128(message, sizeof(ulong) * 2, &h1, &h2); } }

public void ComputeHash128_ToHash128() { unsafe { ulong* message = stackalloc ulong[2]; message[0] = 0x73BC2A67F; message[1] = 0x54B1A5C2C;

Hash128 hash = new Hash128();

HashUnsafeUtilities.ComputeHash128(message, sizeof(ulong) * 2, &hash); } } }


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4