# WritePackedUIntDelta(uint, uint, in StreamCompressionModel)

> Writes a delta 4-byte unsigned integer value to the data stream using a StreamCompressionModel. Note that the Uint values are cast to an Int after computing the diff.

## Definition

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

## WritePackedUIntDelta(uint, uint, StreamCompressionModel)

```csharp
public bool WritePackedUIntDelta(uint value, uint baseline, in StreamCompressionModel model)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The current 4-byte unsigned integer value.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The previous 4-byte unsigned integer value, used to compute the diff.**** (\[StreamCompressionModel]\(/engine/6000.7/script-reference/unity/collections/streamcompressionmodel)): [StreamCompressionModel](/engine/6000.7/script-reference/unity/collections/streamcompressionmodel.md) model for writing value in a packed manner.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the write was successful |
