Java.Nio.ByteBuffer.GetShort Method
Returns the short at the specified index.

Syntax

[Android.Runtime.Register("getShort", "(I)S", "GetGetShort_IHandler")]
public abstract short GetShort (int index)

Parameters

index
the index, must not be negative and equal or less than limit - 2.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif index is invalid.

Remarks

Returns the short at the specified index.

The 2 bytes starting at the specified index are composed into a short according to the current byte order and returned. The position is not changed.

[Android Documentation]

Requirements

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