docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)