Java.Nio.ShortBuffer.Compact Method
Compacts this short buffer.

Syntax

[Android.Runtime.Register("compact", "()Ljava/nio/ShortBuffer;", "GetCompactHandler")]
public abstract ShortBuffer Compact ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.ReadOnlyBufferExceptionif no changes may be made to the contents of this buffer.

Remarks

Compacts this short buffer.

The remaining shorts will be moved to the head of the buffer, starting from position zero. Then the position is set to remaining(); the limit is set to capacity; the mark is cleared.

[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