Struct RelayAllocationId
The allocation ID is a unique identifier for a connected client/host to a Relay server.
Inherited Members
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) |