Freigeben über


DatagramPacket.GetData Method

Definition

Returns the data buffer.

[Android.Runtime.Register("getData", "()[B", "")]
public byte[]? GetData ();
[<Android.Runtime.Register("getData", "()[B", "")>]
member this.GetData : unit -> byte[]

Returns

Byte[]

the buffer used to receive or send data

Attributes

Remarks

Returns the data buffer. The data received or the data to be sent starts from the offset in the buffer, and runs for length long.

Java documentation for java.net.DatagramPacket.getData().

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