WritePackedDoubleDelta(double, double, in StreamCompressionModel)
Writes a 8-byte floating point value to the data stream. If the data did not change a zero bit is prepended, otherwise a 1 bit is prepended. When reading back the data, the first bit is then checked for whether the data was changed or not.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
WritePackedDoubleDelta(double, double, StreamCompressionModel)
public bool WritePackedDoubleDelta(double value, double baseline, in StreamCompressionModel model)
Parameters
The current 8-byte floating point value.
The previous 8-byte floating value, used to compute the diff.
Not currently used.
Returns
Type | Description |
|---|---|
| bool | Whether the write was successful |