Share via


MacAddress.ToByteArray Method

Definition

Convert this MacAddress to a byte array.

[Android.Runtime.Register("toByteArray", "()[B", "", ApiSince=28)]
public byte[] ToByteArray ();
[<Android.Runtime.Register("toByteArray", "()[B", "", ApiSince=28)>]
member this.ToByteArray : unit -> byte[]

Returns

Byte[]

a byte array representation of this MacAddress.

Attributes

Remarks

Convert this MacAddress to a byte array.

The returned array is in network order. For example, if this MacAddress is 01:02:03:04:05:06, the returned array is [1, 2, 3, 4, 5, 6].

Java documentation for android.net.MacAddress.toByteArray().

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