ProtoOutputStream Constructors

Definition

Overloads

ProtoOutputStream()

Construct a ProtoOutputStream with the default chunk size.

ProtoOutputStream(Int32)

Construct a ProtoOutputStream with the given chunk size.

        &lt;p&gt;This is for an in-memory proto. The caller should use {@link #getBytes()</code> for the result.
ProtoOutputStream(Stream)

Construct a ProtoOutputStream that sits on top of an OutputStream.

ProtoOutputStream()

Construct a ProtoOutputStream with the default chunk size.

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=30)]
public ProtoOutputStream ();
Attributes

Remarks

Construct a ProtoOutputStream with the default chunk size.

This is for an in-memory proto. The caller should use #getBytes() for the result.

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

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

ProtoOutputStream(Int32)

Construct a ProtoOutputStream with the given chunk size.

        &lt;p&gt;This is for an in-memory proto. The caller should use {@link #getBytes()</code> for the result.
[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=30)]
public ProtoOutputStream (int chunkSize);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=30)>]
new Android.Util.Proto.ProtoOutputStream : int -> Android.Util.Proto.ProtoOutputStream

Parameters

chunkSize
Int32
Attributes

Remarks

Construct a ProtoOutputStream with the given chunk size.

<p>This is for an in-memory proto. The caller should use {@link #getBytes() for the result.

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

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

ProtoOutputStream(Stream)

Construct a ProtoOutputStream that sits on top of an OutputStream.

[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;)V", "", ApiSince=30)]
public ProtoOutputStream (System.IO.Stream stream);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;)V", "", ApiSince=30)>]
new Android.Util.Proto.ProtoOutputStream : System.IO.Stream -> Android.Util.Proto.ProtoOutputStream

Parameters

stream
Stream
Attributes

Remarks

Construct a ProtoOutputStream that sits on top of an OutputStream.

The #flush() method must be called when done writing to flush any remaining data, although data *may* be written at intermediate points within the writing as well.

Java documentation for android.util.proto.ProtoOutputStream.ProtoOutputStream(java.io.OutputStream).

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