Method ReadPackedFixedStringDelta
ReadPackedFixedStringDelta(byte*, int, byte*, ushort, NetworkCompressionModel)
Read and copy a fixed string delta (of unknown length) into the given buffer.
Declaration
public ushort ReadPackedFixedStringDelta(byte* data, int maxLength, byte* baseData, ushort baseLength, NetworkCompressionModel model)
Parameters
Type | Name | Description |
---|---|---|
byte* | data | Pointer to the buffer to write the string bytes to. |
int | maxLength | Length of the buffer to write the string bytes to. |
byte* | baseData | Pointer to the previous value, used to compute the diff. |
ushort | baseLength | Length of the previous value, used to compute the diff. |
NetworkCompressionModel | model | NetworkCompressionModel model for writing value in a packed manner. |
Returns
Type | Description |
---|---|
ushort | Length of data read into byte array, or zero if error occurred. |