Share via


DataOutputStream.WriteChar(Int32) Method

Definition

Writes a char to the underlying output stream as a 2-byte value, high byte first.

[Android.Runtime.Register("writeChar", "(I)V", "")]
public void WriteChar (int v);
[<Android.Runtime.Register("writeChar", "(I)V", "")>]
abstract member WriteChar : int -> unit
override this.WriteChar : int -> unit

Parameters

v
Int32

a char value to be written.

Implements

Attributes

Exceptions

Remarks

Writes a char to the underlying output stream as a 2-byte value, high byte first. If no exception is thrown, the counter written is incremented by 2.

Java documentation for java.io.DataOutputStream.writeChar(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