Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

DataStreamReader.ReadPackedUIntDelta

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public uint ReadPackedUIntDelta(uint baseline, ref StreamCompressionModel model);

Parameters

Parameter Description
baseline The previous 4-byte unsigned integer value, used to compute the diff.
model StreamCompressionModel model for reading value in a packed manner.

Returns

uint A 4-byte unsigned integer read from the current stream, or 0 if the end of the stream has been reached. If the data did not change, this also returns 0. See: DataStreamReader.HasFailedReads to verify if the read failed.

Description

Reads a 4-byte unsigned integer delta value from the data stream using a StreamCompressionModel.