Method ReadPackedFixedStringDelta
ReadPackedFixedStringDelta(NativeArray<byte>, NativeArray<byte>, StreamCompressionModel)
Read and copy data into the given NativeArray of bytes, an error will be logged if not enough bytes are available in the array.
Declaration
public ushort ReadPackedFixedStringDelta(NativeArray<byte> data, NativeArray<byte> baseData, StreamCompressionModel model)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<byte> | data | Array for the current fixed string. |
NativeArray<byte> | baseData | Array containing the previous value, used to compute the diff. |
StreamCompressionModel | model | StreamCompressionModel model for writing value in a packed manner. |
Returns
Type | Description |
---|---|
ushort | Length of data read into byte array, or zero if error occurred. |