Java.IO.IDataOutput.WriteShort Method
Writes the specified 16-bit short in big-endian order.

Syntax

[Android.Runtime.Register("writeShort", "(I)V", "GetWriteShort_IHandler:Java.IO.IDataOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void WriteShort (int val)

See Also

IDataInput.ReadShort
IDataInput.ReadUnsignedShort

Parameters

val
the short to write.

Exceptions

TypeReason
Java.IO.IOExceptionif an I/O error occurs while writing.

Remarks

Writes the specified 16-bit short in big-endian order. Only the lower two bytes of val are written.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1