docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RelayAllocationId

    Allocation Id is a unique identifier for a connected client/host to a Relay server. This identifier is used by the Relay protocol as the address of the client.

    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

    The raw data of the Allocation Id.

    k_Length

    The length in bytes of the 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 a RelayAllocationId

    FromBytePointer(byte*, int)

    Converts a byte pointer to a RelayAllocationId.

    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 — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)