文档

Unity Engine

Unity Engine

ReadPackedFixedStringDelta(NativeArray<byte>, NativeArray<byte>, in 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.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

ReadPackedFixedStringDelta(NativeArray<byte>, NativeArray<byte>, StreamCompressionModel)

public ushort ReadPackedFixedStringDelta(NativeArray<byte> data, NativeArray<byte> baseData, in StreamCompressionModel model)

Parameters

Array for the current fixed string.

Array containing the previous value, used to compute the diff.

StreamCompressionModel model for writing value in a packed manner.

Returns

Type

Description

ushortLength of data read into byte array, or zero if error occurred.