Struct SequenceHelpers | Unity Transport | 0.5.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Struct SequenceHelpers

    Namespace: Unity.Networking.Transport.Utilities
    Syntax
    public struct SequenceHelpers

    Methods

    AbsDistance(UInt16, UInt16)

    Declaration
    public static int AbsDistance(ushort lhs, ushort rhs)
    Parameters
    Type Name Description
    UInt16 lhs
    UInt16 rhs
    Returns
    Type Description
    Int32

    BitMaskToString(UInt32)

    Declaration
    public static string BitMaskToString(uint mask)
    Parameters
    Type Name Description
    UInt32 mask
    Returns
    Type Description
    String

    GreaterThan16(UInt16, UInt16)

    Declaration
    public static bool GreaterThan16(ushort lhs, ushort rhs)
    Parameters
    Type Name Description
    UInt16 lhs
    UInt16 rhs
    Returns
    Type Description
    Boolean

    IsNewer(UInt32, UInt32)

    Declaration
    public static bool IsNewer(uint current, uint old)
    Parameters
    Type Name Description
    UInt32 current
    UInt32 old
    Returns
    Type Description
    Boolean

    LessThan16(UInt16, UInt16)

    Declaration
    public static bool LessThan16(ushort lhs, ushort rhs)
    Parameters
    Type Name Description
    UInt16 lhs
    UInt16 rhs
    Returns
    Type Description
    Boolean

    StalePacket(UInt16, UInt16, UInt16)

    Declaration
    public static bool StalePacket(ushort sequence, ushort oldSequence, ushort windowSize)
    Parameters
    Type Name Description
    UInt16 sequence
    UInt16 oldSequence
    UInt16 windowSize
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023