Method WritePackedIntDelta
WritePackedIntDelta(int, int, NetworkCompressionModel)
Writes a delta 4-byte signed integer value to the data stream using a NetworkCompressionModel.
Declaration
public bool WritePackedIntDelta(int value, int baseline, NetworkCompressionModel model)
Parameters
Type | Name | Description |
---|---|---|
int | value | The current 4-byte signed integer value. |
int | baseline | The previous 4-byte signed integer value, used to compute the diff. |
NetworkCompressionModel | model | NetworkCompressionModel model for writing value in a packed manner. |
Returns
Type | Description |
---|---|
bool | Whether the write was successful |