WritePackedFloatDelta(float, float, in StreamCompressionModel)
Writes a 4-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 10 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
WritePackedFloatDelta(float, float, StreamCompressionModel)
public bool WritePackedFloatDelta(float value, float baseline, in StreamCompressionModel model)
Parameters
The current 4-byte floating point value.
The previous 4-byte floating value, used to compute the diff.
Not currently used.
Returns
Type | Description |
|---|---|
| bool | Whether the write was successful |