Method SetRawAddressBytes
SetRawAddressBytes(NativeArray<byte>, NetworkFamily)
Directly sets the raw bytes of the endpoint using the specified bytes and family.
Declaration
public void SetRawAddressBytes(NativeArray<byte> bytes, NetworkFamily family = NetworkFamily.Ipv4)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<byte> | bytes | Raw bytes to use for the endpoint. |
| NetworkFamily | family | Endpoint's address family. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Length of bytes doesn't match family. |