Compartilhar via


IDataOutput.WriteBoolean(Boolean) Method

Definition

Writes a boolean value to this output stream.

[Android.Runtime.Register("writeBoolean", "(Z)V", "GetWriteBoolean_ZHandler:Java.IO.IDataOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void WriteBoolean (bool v);
[<Android.Runtime.Register("writeBoolean", "(Z)V", "GetWriteBoolean_ZHandler:Java.IO.IDataOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member WriteBoolean : bool -> unit

Parameters

v
Boolean

the boolean to be written.

Attributes

Exceptions

if an I/O error occurs while writing.

Remarks

Writes a boolean value to this output stream. If the argument v is true, the value (byte)1 is written; if v is false, the value (byte)0 is written. The byte written by this method may be read by the readBoolean method of interface DataInput, which will then return a boolean equal to v.

Java documentation for java.io.DataOutput.writeBoolean(boolean).

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

See also