Skip to main content

Unity.Networking.Transport.Relay.RelayHMACKey

Used to represent the HMACKey for the Relay Service

Inherited Members#

ValueType.Equals(Object)

ValueType.GetHashCode()

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
public struct RelayHMACKey

k_Length#

The length in bytes of the RelayHMACKey.

Declaration#

public const int k_Length = 64

Field Value#

TypeDescription
System.Int32

Value#

The raw data of the HMAC key.

Declaration#

public byte *Value

Field Value#

TypeDescription
System.Byte*

#

FromBytePointer(Byte*, Int32)#

Converts a byte pointer to a RelayHMACKey.

Declaration#

public static RelayHMACKey FromBytePointer(byte *data, int length)

Parameters#

TypeNameDescription
System.Byte*dataThe pointer to the data of the Allocation Id.
System.Int32lengthThe length of the data.

Returns#

TypeDescription
RelayHMACKeyReturns a RelayHMACKey constructed from the provided data.

Exceptions#

TypeCondition
System.ArgumentExceptionProvided byte array length is invalid, must be {k_Length} but got {length}.