DataInputStream.ReadShort Method

Definition

See the general contract of the readShort method of DataInput.

[Android.Runtime.Register("readShort", "()S", "")]
public short ReadShort ();
[<Android.Runtime.Register("readShort", "()S", "")>]
abstract member ReadShort : unit -> int16
override this.ReadShort : unit -> int16

Returns

the next two bytes of this input stream, interpreted as a signed 16-bit number.

Implements

Attributes

Exceptions

Remarks

See the general contract of the readShort method of DataInput.

Bytes for this operation are read from the contained input stream.

Java documentation for java.io.DataInputStream.readShort().

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