Partager via


ProtoOutputStream.GetBytes Method

Definition

Finish the encoding of the data, and return a byte[] with the protobuf formatted data.

[Android.Runtime.Register("getBytes", "()[B", "", ApiSince=30)]
public byte[] GetBytes ();
[<Android.Runtime.Register("getBytes", "()[B", "", ApiSince=30)>]
member this.GetBytes : unit -> byte[]

Returns

Byte[]
Attributes

Remarks

Finish the encoding of the data, and return a byte[] with the protobuf formatted data.

After this call, do not call any of the write* functions. The behavior is undefined.

Java documentation for android.util.proto.ProtoOutputStream.getBytes().

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