Sdílet prostřednictvím


ProtoOutputStream.Flush Method

Definition

Write remaining data to the output stream.

[Android.Runtime.Register("flush", "()V", "", ApiSince=30)]
public void Flush ();
[<Android.Runtime.Register("flush", "()V", "", ApiSince=30)>]
member this.Flush : unit -> unit
Attributes

Remarks

Write remaining data to the output stream. If there is no output stream, this function does nothing. Any currently open objects (i.e. ones that have not had #end(long) called for them will not be written). Whether this writes objects that are closed if there are remaining open objects is undefined (current implementation does not write it, future ones will). For now, can either call #getBytes() or #flush(), but not both.

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

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