Share via


MacAddress.FromBytes(Byte[]) Method

Definition

Creates a MacAddress from the given byte array representation.

[Android.Runtime.Register("fromBytes", "([B)Landroid/net/MacAddress;", "", ApiSince=28)]
public static Android.Net.MacAddress FromBytes (byte[] addr);
[<Android.Runtime.Register("fromBytes", "([B)Landroid/net/MacAddress;", "", ApiSince=28)>]
static member FromBytes : byte[] -> Android.Net.MacAddress

Parameters

addr
Byte[]

a byte array representation of a MAC address.

Returns

the MacAddress corresponding to the given byte array representation.

Attributes

Remarks

Creates a MacAddress from the given byte array representation. A valid byte array representation for a MacAddress is a non-null array of length 6.

Java documentation for android.net.MacAddress.fromBytes(byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to