# WritePackedLongDelta(long, long, in StreamCompressionModel)

> Writes a delta 8-byte signed long value to the data stream using a StreamCompressionModel.

## Definition

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

## WritePackedLongDelta(long, long, StreamCompressionModel)

```csharp
public bool WritePackedLongDelta(long value, long baseline, in StreamCompressionModel model)
```

### Parameters

**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The current 8-byte signed long value.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The previous 8-byte signed long 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 |
