docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RelayAllocationId

    The allocation ID is a unique identifier for a connected client/host to a Relay server.

    Implements
    IEquatable<RelayAllocationId>
    IComparable<RelayAllocationId>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Networking.Transport.Relay
    Assembly: solution.dll
    Syntax
    public struct RelayAllocationId : IEquatable<RelayAllocationId>, IComparable<RelayAllocationId>

    Fields

    Name Description
    Value

    Raw value of the allocation ID.

    k_Length

    Length of an allocation ID.

    Methods

    Name Description
    CompareTo(RelayAllocationId)

    Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Equals(RelayAllocationId)

    Indicates whether the current object is equal to another object of the same type.

    FromByteArray(byte[])

    Convert a byte array to an allocation ID.

    FromBytePointer(byte*, int)

    Convert a raw buffer to an allocation ID.

    GetHashCode()

    Returns the hash code for this instance.

    Operators

    Name Description
    operator ==(RelayAllocationId, RelayAllocationId)
    operator !=(RelayAllocationId, RelayAllocationId)
    In This Article
    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