Method FromBytePointer
FromBytePointer(byte*, int)
Converts a byte pointer to a RelayConnectionData.
Declaration
public static RelayConnectionData FromBytePointer(byte* dataPtr, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| byte* | dataPtr | The pointer to the data of the Connection Data. |
| int | length | The length of the data. |
Returns
| Type | Description |
|---|---|
| RelayConnectionData | Returns a RelayConnectionData constructed from the provided data. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Provided byte array length is invalid, must be {k_Length} but got {length}. |