# Update

> Add some data to be hashed

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## Update(void\*, int)

Add some data to be hashed

```csharp
public void Update(void* input, int length)
```

### Parameters

**** (\[void\*]\(https\://learn.microsoft.com/dotnet/api/system.void)): The memory buffer, can't be null**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): 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.

```csharp
public void Update<T>(in T input) where T : unmanaged
```

### Parameters

**** (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.
